summaryrefslogtreecommitdiff
path: root/python2/futures/_base.py
diff options
context:
space:
mode:
Diffstat (limited to 'python2/futures/_base.py')
-rw-r--r--python2/futures/_base.py20
1 files changed, 12 insertions, 8 deletions
diff --git a/python2/futures/_base.py b/python2/futures/_base.py
index 8d0841e..b60f19a 100644
--- a/python2/futures/_base.py
+++ b/python2/futures/_base.py
@@ -1,3 +1,7 @@
+# Copyright 2009 Brian Quinlan. All Rights Reserved. See LICENSE file.
+
+__author__ = 'Brian Quinlan (brian@sweetapp.com)'
+
import logging
import threading
import time
@@ -6,14 +10,14 @@ try:
from functools import partial
except ImportError:
def partial(func, *args, **keywords):
- def newfunc(*fargs, **fkeywords):
- newkeywords = keywords.copy()
- newkeywords.update(fkeywords)
- return func(*(args + fargs), **newkeywords)
- newfunc.func = func
- newfunc.args = args
- newfunc.keywords = keywords
- return newfunc
+ def newfunc(*fargs, **fkeywords):
+ newkeywords = keywords.copy()
+ newkeywords.update(fkeywords)
+ return func(*(args + fargs), **newkeywords)
+ newfunc.func = func
+ newfunc.args = args
+ newfunc.keywords = keywords
+ return newfunc
# The "any" and "all" builtins weren't introduced until Python 2.5.
try: