GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — change sync helper to be py26 friendly · justuni/java2python@408deec

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • java2python/mod/include
    • sync.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎java2python/mod/include/sync.py‎

Copy file name to clipboardExpand all lines: java2python/mod/include/sync.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def lock_for_object(obj, locks={}):
55
return locks.setdefault(id(obj), RLock())
66

77
def synchronized(call):
8-
assert call.__code__.co_varnames[0] in {'self', 'cls'}
8+
assert call.__code__.co_varnames[0] in ['self', 'cls']
99
@wraps(call)
1010
def inner(*args, **kwds):
1111
with lock_for_object(args[0]):

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.