Skip to content

Commit 546f754

Browse files
committed
MOTOR-1214 Fix catch_warnings on Python 3.7
1 parent 5e6453a commit 546f754

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

synchro/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,8 @@ def synchronized_method(*args, **kwargs):
338338
def partial():
339339
return async_method(*args, **kwargs)
340340

341-
with warnings.catch_warnings(action="ignore", category=DeprecationWarning):
341+
with warnings.catch_warnings():
342+
warnings.simplefilter("ignore", DeprecationWarning)
342343
loop = IOLoop.current()
343344
return loop.run_sync(partial)
344345

0 commit comments

Comments
 (0)