summaryrefslogtreecommitdiffstats
path: root/Lib/_threading_local.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-06-11 17:27:50 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-06-11 17:27:50 (GMT)
commit0fbcf6945584b1b2a7564680de50c062fc4dce1c (patch)
tree44d27858990999b69379b50abc5ad163789db6fc /Lib/_threading_local.py
parent32c2e41c82c2d0f967a0f435f88168583218f262 (diff)
downloadcpython-0fbcf6945584b1b2a7564680de50c062fc4dce1c.zip
cpython-0fbcf6945584b1b2a7564680de50c062fc4dce1c.tar.gz
cpython-0fbcf6945584b1b2a7564680de50c062fc4dce1c.tar.bz2
give the threading API PEP 8 names
Diffstat (limited to 'Lib/_threading_local.py')
-rw-r--r--Lib/_threading_local.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/_threading_local.py b/Lib/_threading_local.py
index f0ce857..4eda630 100644
--- a/Lib/_threading_local.py
+++ b/Lib/_threading_local.py
@@ -162,16 +162,16 @@ class _localbase(object):
# __init__ being called, to make sure we don't call it
# again ourselves.
dict = object.__getattribute__(self, '__dict__')
- currentThread().__dict__[key] = dict
+ current_thread().__dict__[key] = dict
return self
def _patch(self):
key = object.__getattribute__(self, '_local__key')
- d = currentThread().__dict__.get(key)
+ d = current_thread().__dict__.get(key)
if d is None:
d = {}
- currentThread().__dict__[key] = d
+ current_thread().__dict__[key] = d
object.__setattr__(self, '__dict__', d)
# we have a new instance dict, so call out __init__ if we have
@@ -238,4 +238,4 @@ class local(_localbase):
except KeyError:
pass # didn't have anything in this thread
-from threading import currentThread, RLock
+from threading import current_thread, RLock