summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2006-05-29 12:43:05 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2006-05-29 12:43:05 (GMT)
commitc649ec5b69bd864914e02a2a9ec73c23bd307448 (patch)
tree795bb943ec4b6a13501e55aaa6a8efe9b86d0305 /Lib
parentc7c51147c73984137410ec03026b77e4a76ab61e (diff)
downloadcpython-c649ec5b69bd864914e02a2a9ec73c23bd307448.zip
cpython-c649ec5b69bd864914e02a2a9ec73c23bd307448.tar.gz
cpython-c649ec5b69bd864914e02a2a9ec73c23bd307448.tar.bz2
Apply modified version of Collin Winter's patch #1478788
Renames functional extension module to _functools and adds a Python functools module so that utility functions like update_wrapper can be added easily.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_functools.py (renamed from Lib/test/test_functional.py)6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_functional.py b/Lib/test/test_functools.py
index 5078a2e..609e8f4 100644
--- a/Lib/test/test_functional.py
+++ b/Lib/test/test_functools.py
@@ -1,4 +1,4 @@
-import functional
+import functools
import unittest
from test import test_support
from weakref import proxy
@@ -21,7 +21,7 @@ def capture(*args, **kw):
class TestPartial(unittest.TestCase):
- thetype = functional.partial
+ thetype = functools.partial
def test_basic_examples(self):
p = self.thetype(capture, 1, 2, a=10, b=20)
@@ -140,7 +140,7 @@ class TestPartial(unittest.TestCase):
join = self.thetype(''.join)
self.assertEqual(join(data), '0123456789')
-class PartialSubclass(functional.partial):
+class PartialSubclass(functools.partial):
pass
class TestPartialSubclass(TestPartial):