Commits

Armin Rigo  committed 746c2e5

Fix typo

  • Participants
  • Parent commits 6768bad
  • Branches speedup-unpackiterable

Comments (0)

Files changed (5)

File pypy/objspace/std/celldict.py

 """
 
 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
     def wrapvalue(space, value):
         return unwrap_cell(value)
 
-create_itertor_classes(ModuleDictStrategy)
+create_iterator_classes(ModuleDictStrategy)

File pypy/objspace/std/dictmultiobject.py

 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:
     dictimpl.itervalues = itervalues
     dictimpl.iteritems = iteritems
 
-create_itertor_classes(EmptyDictStrategy)
+create_iterator_classes(EmptyDictStrategy)
 
 registerimplementation(W_DictMultiObject)
 
     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):
 
             i += 1
         return keys, values
 
-create_itertor_classes(StringDictStrategy)
+create_iterator_classes(StringDictStrategy)
 
 
 class IntDictStrategy(AbstractTypedStrategy, DictStrategy):
 
     # 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]

File pypy/objspace/std/dictproxyobject.py

 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
     def wrapvalue(space, value):
         return unwrap_cell(space, value)
 
-create_itertor_classes(DictProxyStrategy)
+create_iterator_classes(DictProxyStrategy)

File pypy/objspace/std/identitydict.py

 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
     def w_keys(self, w_dict):
         return self.space.newlist(self.unerase(w_dict.dstorage).keys())
 
-create_itertor_classes(IdentityDictStrategy)
+create_iterator_classes(IdentityDictStrategy)

File pypy/objspace/std/kwargsdict.py

 
 from pypy.rlib import rerased, jit
 from pypy.objspace.std.dictmultiobject import (DictStrategy,
-                                               create_itertor_classes,
+                                               create_iterator_classes,
                                                EmptyDictStrategy,
                                                ObjectDictStrategy,
                                                StringDictStrategy)
     else:
         return None, None
 
-create_itertor_classes(KwargsDictStrategy, override_next_item=next_item)
+create_iterator_classes(KwargsDictStrategy, override_next_item=next_item)