[pypy-commit] pypy speedup-unpackiterable: Fix typo

arigo noreply at buildbot.pypy.org
Mon Aug 13 16:14:34 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: speedup-unpackiterable
Changeset: r56721:746c2e581d5b
Date: 2012-08-13 16:14 +0200
http://bitbucket.org/pypy/pypy/changeset/746c2e581d5b/

Log:	Fix typo

diff --git a/pypy/objspace/std/celldict.py b/pypy/objspace/std/celldict.py
--- a/pypy/objspace/std/celldict.py
+++ b/pypy/objspace/std/celldict.py
@@ -4,7 +4,7 @@
 """
 
 from pypy.interpreter.baseobjspace import W_Root
-from pypy.objspace.std.dictmultiobject import create_itertor_classes
+from pypy.objspace.std.dictmultiobject import create_iterator_classes
 from pypy.objspace.std.dictmultiobject import DictStrategy, _never_equal_to_string
 from pypy.objspace.std.dictmultiobject import ObjectDictStrategy
 from pypy.rlib import jit, rerased
@@ -169,4 +169,4 @@
     def wrapvalue(space, value):
         return unwrap_cell(value)
 
-create_itertor_classes(ModuleDictStrategy)
+create_iterator_classes(ModuleDictStrategy)
diff --git a/pypy/objspace/std/dictmultiobject.py b/pypy/objspace/std/dictmultiobject.py
--- a/pypy/objspace/std/dictmultiobject.py
+++ b/pypy/objspace/std/dictmultiobject.py
@@ -350,7 +350,7 @@
 class BaseItemIterator(BaseIteratorImplementation):
     next_item = _new_next('item')
 
-def create_itertor_classes(dictimpl, override_next_item=None):
+def create_iterator_classes(dictimpl, override_next_item=None):
     if not hasattr(dictimpl, 'wrapkey'):
         wrapkey = lambda space, key : key
     else:
@@ -409,7 +409,7 @@
     dictimpl.itervalues = itervalues
     dictimpl.iteritems = iteritems
 
-create_itertor_classes(EmptyDictStrategy)
+create_iterator_classes(EmptyDictStrategy)
 
 registerimplementation(W_DictMultiObject)
 
@@ -556,7 +556,7 @@
     def w_keys(self, w_dict):
         return self.space.newlist(self.unerase(w_dict.dstorage).keys())
 
-create_itertor_classes(ObjectDictStrategy)
+create_iterator_classes(ObjectDictStrategy)
 
 class StringDictStrategy(AbstractTypedStrategy, DictStrategy):
 
@@ -620,7 +620,7 @@
             i += 1
         return keys, values
 
-create_itertor_classes(StringDictStrategy)
+create_iterator_classes(StringDictStrategy)
 
 
 class IntDictStrategy(AbstractTypedStrategy, DictStrategy):
@@ -657,7 +657,7 @@
 
     # XXX there is no space.newlist_int yet to implement w_keys more efficiently
 
-create_itertor_classes(IntDictStrategy)
+create_iterator_classes(IntDictStrategy)
 
 init_signature = Signature(['seq_or_map'], None, 'kwargs')
 init_defaults = [None]
diff --git a/pypy/objspace/std/dictproxyobject.py b/pypy/objspace/std/dictproxyobject.py
--- a/pypy/objspace/std/dictproxyobject.py
+++ b/pypy/objspace/std/dictproxyobject.py
@@ -1,6 +1,6 @@
 from pypy.objspace.std.model import registerimplementation, W_Object
 from pypy.objspace.std.register_all import register_all
-from pypy.objspace.std.dictmultiobject import W_DictMultiObject, create_itertor_classes
+from pypy.objspace.std.dictmultiobject import W_DictMultiObject, create_iterator_classes
 from pypy.objspace.std.dictmultiobject import DictStrategy
 from pypy.objspace.std.typeobject import unwrap_cell
 from pypy.interpreter.error import OperationError, operationerrfmt
@@ -114,4 +114,4 @@
     def wrapvalue(space, value):
         return unwrap_cell(space, value)
 
-create_itertor_classes(DictProxyStrategy)
+create_iterator_classes(DictProxyStrategy)
diff --git a/pypy/objspace/std/identitydict.py b/pypy/objspace/std/identitydict.py
--- a/pypy/objspace/std/identitydict.py
+++ b/pypy/objspace/std/identitydict.py
@@ -5,7 +5,7 @@
 from pypy.rlib.debug import mark_dict_non_null
 from pypy.objspace.std.dictmultiobject import (AbstractTypedStrategy,
                                                DictStrategy,
-                                               create_itertor_classes)
+                                               create_iterator_classes)
 
 
 # this strategy is selected by EmptyDictStrategy.switch_to_correct_strategy
@@ -79,4 +79,4 @@
     def w_keys(self, w_dict):
         return self.space.newlist(self.unerase(w_dict.dstorage).keys())
 
-create_itertor_classes(IdentityDictStrategy)
+create_iterator_classes(IdentityDictStrategy)
diff --git a/pypy/objspace/std/kwargsdict.py b/pypy/objspace/std/kwargsdict.py
--- a/pypy/objspace/std/kwargsdict.py
+++ b/pypy/objspace/std/kwargsdict.py
@@ -3,7 +3,7 @@
 
 from pypy.rlib import rerased, jit
 from pypy.objspace.std.dictmultiobject import (DictStrategy,
-                                               create_itertor_classes,
+                                               create_iterator_classes,
                                                EmptyDictStrategy,
                                                ObjectDictStrategy,
                                                StringDictStrategy)
@@ -174,4 +174,4 @@
     else:
         return None, None
 
-create_itertor_classes(KwargsDictStrategy, override_next_item=next_item)
+create_iterator_classes(KwargsDictStrategy, override_next_item=next_item)


More information about the pypy-commit mailing list