Commit f0f8bf5b authored by Jason R. Coombs's avatar Jason R. Coombs

Partial appears to behave differently on Python 2.6. Also, this syntax is more...

Partial appears to behave differently on Python 2.6. Also, this syntax is more congruent and easier to read.
parent ba2699fa
...@@ -3057,8 +3057,8 @@ def _call_aside(f, *args, **kwargs): ...@@ -3057,8 +3057,8 @@ def _call_aside(f, *args, **kwargs):
return f return f
@functools.partial(_call_aside, globals()) @_call_aside
def _initialize(g): def _initialize(g=globals()):
"Set up global resource manager (deliberately not state-saved)" "Set up global resource manager (deliberately not state-saved)"
manager = ResourceManager() manager = ResourceManager()
g['_manager'] = manager g['_manager'] = manager
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment