[pypy-commit] pypy unicode-utf8: Re-enable this, seems to work fine
arigo
pypy.commits at gmail.com
Thu Oct 12 07:26:58 EDT 2017
Author: Armin Rigo <arigo at tunes.org>
Branch: unicode-utf8
Changeset: r92733:e3cdc0f10924
Date: 2017-10-12 13:26 +0200
http://bitbucket.org/pypy/pypy/changeset/e3cdc0f10924/
Log: Re-enable this, seems to work fine
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
@@ -640,9 +640,9 @@
if type(w_key) is self.space.StringObjectCls:
self.switch_to_bytes_strategy(w_dict)
return
- #elif type(w_key) is self.space.UnicodeObjectCls:
- # self.switch_to_unicode_strategy(w_dict)
- # return
+ elif type(w_key) is self.space.UnicodeObjectCls:
+ self.switch_to_unicode_strategy(w_dict)
+ return
w_type = self.space.type(w_key)
if self.space.is_w(w_type, self.space.w_int):
self.switch_to_int_strategy(w_dict)
@@ -658,7 +658,6 @@
w_dict.dstorage = storage
def switch_to_unicode_strategy(self, w_dict):
- xxx
strategy = self.space.fromcache(UnicodeDictStrategy)
storage = strategy.get_empty_storage()
w_dict.set_strategy(strategy)
More information about the pypy-commit
mailing list