Skip to content

Commit

Permalink
Fix py2/py3 iteritems (#5194)
Browse files Browse the repository at this point in the history
* Fix py2/py3 iteritems

* Revert iteritems for cython files
  • Loading branch information
KeyWeeUsr authored and dessant committed May 26, 2017
1 parent b47d519 commit b7906e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kivy/storage/redisstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

import os
from json import loads, dumps
from kivy.compat import iteritems
from kivy.properties import StringProperty
from kivy.storage import AbstractStore

Expand Down Expand Up @@ -73,7 +74,7 @@ def store_put(self, key, values):
key = self.prefix + '.d.' + key
pipe = self.r.pipeline()
pipe.delete(key)
for k, v in values.iteritems():
for k, v in iteritems(values):
pipe.hset(key, k, dumps(v))
pipe.execute()
return True
Expand Down

0 comments on commit b7906e7

Please sign in to comment.