Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
12ca410a
Commit
12ca410a
authored
May 02, 2011
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update a comment
parent
0c13bd51
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
gevent/local.py
gevent/local.py
+2
-2
No files found.
gevent/local.py
View file @
12ca410a
...
...
@@ -171,8 +171,8 @@ class local(_localbase):
def
__getattribute__
(
self
,
name
):
d
=
object
.
__getattribute__
(
self
,
'_local__dicts'
).
get
(
getcurrent
())
if
d
is
None
:
#
we can obtain the lock here and not earlier, because the above has no switches
out
# however, subclassed __init__ m
ay switch so we do need obtain
the lock here
#
it's OK to acquire the lock here and not earlier, because the above code won't switch
out
# however, subclassed __init__ m
ight switch, so we do need to acquire
the lock here
lock
=
object
.
__getattribute__
(
self
,
'_local__lock'
)
lock
.
acquire
()
try
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment