summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-04-26 10:58:40 -0400
committerJason R. Coombs <jaraco@jaraco.com>2015-04-26 10:58:40 -0400
commitf0f8bf5b6deedb85e7b4b120e30c6d90891c9baf (patch)
tree279209a1671a2ffc29839af080544181148b564e
parentba2699fae236a351cc4d3acf7a7a7d50bb614722 (diff)
downloadpython-setuptools-git-15.2.tar.gz
Partial appears to behave differently on Python 2.6. Also, this syntax is more congruent and easier to read.15.2
-rw-r--r--pkg_resources/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py
index f2b13d99..412e64c4 100644
--- a/pkg_resources/__init__.py
+++ b/pkg_resources/__init__.py
@@ -3057,8 +3057,8 @@ def _call_aside(f, *args, **kwargs):
return f
-@functools.partial(_call_aside, globals())
-def _initialize(g):
+@_call_aside
+def _initialize(g=globals()):
"Set up global resource manager (deliberately not state-saved)"
manager = ResourceManager()
g['_manager'] = manager