##// END OF EJS Templates
util: fix the signature for the pypy override of sortdict.update()...
Matt Harbison -
r47662:64400d05 default
parent child Browse files
Show More
@@ -1296,11 +1296,13 b' class sortdict(collections.OrderedDict):'
1296
1296
1297 if pycompat.ispypy:
1297 if pycompat.ispypy:
1298 # __setitem__() isn't called as of PyPy 5.8.0
1298 # __setitem__() isn't called as of PyPy 5.8.0
1299 def update(self, src):
1299 def update(self, src, **f):
1300 if isinstance(src, dict):
1300 if isinstance(src, dict):
1301 src = pycompat.iteritems(src)
1301 src = pycompat.iteritems(src)
1302 for k, v in src:
1302 for k, v in src:
1303 self[k] = v
1303 self[k] = v
1304 for k in f:
1305 self[k] = f[k]
1304
1306
1305 def insert(self, position, key, value):
1307 def insert(self, position, key, value):
1306 for (i, (k, v)) in enumerate(list(self.items())):
1308 for (i, (k, v)) in enumerate(list(self.items())):
General Comments 0
You need to be logged in to leave comments. Login now