Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7a3d54 commit 408deecCopy full SHA for 408deec
java2python/mod/include/sync.py
@@ -5,7 +5,7 @@ def lock_for_object(obj, locks={}):
5
return locks.setdefault(id(obj), RLock())
6
7
def synchronized(call):
8
- assert call.__code__.co_varnames[0] in {'self', 'cls'}
+ assert call.__code__.co_varnames[0] in ['self', 'cls']
9
@wraps(call)
10
def inner(*args, **kwds):
11
with lock_for_object(args[0]):
0 commit comments