Skip to content

Commit

Permalink
Add backward compatibility aliases for async
Browse files Browse the repository at this point in the history
  • Loading branch information
coldfix committed Jan 29, 2018
1 parent 1fc2fdd commit 545bc07
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions rpyc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,4 @@

__author__ = "Tomer Filiba ([email protected])"

globals()['async'] = async_ # backward compatibility
2 changes: 2 additions & 0 deletions rpyc/core/async.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"""Backward compatibility alias on py<=3.6."""
from rpyc.core.async_ import *
2 changes: 2 additions & 0 deletions rpyc/utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ def async_(proxy):
return caller

async_.__doc__ = _Async.__doc__
globals()['async'] = async_ # backward compatibility alias


class timed(object):
"""Creates a timed asynchronous proxy. Invoking the timed proxy will
Expand Down

0 comments on commit 545bc07

Please sign in to comment.