diff options
author | Georg Brandl <georg@python.org> | 2006-12-19 20:50:34 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-12-19 20:50:34 (GMT) |
commit | 66a796e5ab8dd7bfc1fe05a830feb05acdab6f53 (patch) | |
tree | 5ce191f813c475bf54c6ab40ecaebb820327a213 /Tools/pybench/Strings.py | |
parent | 376446dd4e30006c4d4ad09b4cbda8b07e9ce23a (diff) | |
download | cpython-66a796e5ab8dd7bfc1fe05a830feb05acdab6f53.zip cpython-66a796e5ab8dd7bfc1fe05a830feb05acdab6f53.tar.gz cpython-66a796e5ab8dd7bfc1fe05a830feb05acdab6f53.tar.bz2 |
Patch #1601678: move intern() to sys.intern().
Diffstat (limited to 'Tools/pybench/Strings.py')
-rw-r--r-- | Tools/pybench/Strings.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Tools/pybench/Strings.py b/Tools/pybench/Strings.py index 3be8b35..dc49df1 100644 --- a/Tools/pybench/Strings.py +++ b/Tools/pybench/Strings.py @@ -1,5 +1,6 @@ from pybench import Test from string import join +import sys class ConcatStrings(Test): @@ -174,7 +175,7 @@ class CompareInternedStrings(Test): def test(self): # Make sure the strings *are* interned - s = intern(join(map(str,range(10)))) + s = sys.intern(join(map(str,range(10)))) t = s for i in xrange(self.rounds): @@ -240,7 +241,7 @@ class CompareInternedStrings(Test): def calibrate(self): - s = intern(join(map(str,range(10)))) + s = sys.intern(join(map(str,range(10)))) t = s for i in xrange(self.rounds): |