Andriy Kornatskyy avatar Andriy Kornatskyy committed a6e6564

Fixed compatibility issue with python3.3

Comments (0)

Files changed (2)

src/wheezy/caching/encoding.py

         >>> mapping = {'k1': 1, 'k2': 2}
         >>> keys, mapping = encode_keys(mapping,
         ...         lambda k: str(base64_encode(k).decode('latin1')))
-        >>> keys
-        {'azE=': 'k1', 'azI=': 'k2'}
-        >>> mapping
-        {'azE=': 1, 'azI=': 2}
+        >>> sorted(keys.items())
+        [('azE=', 'k1'), ('azI=', 'k2')]
+        >>> sorted(mapping.items())
+        [('azE=', 1), ('azI=', 2)]
     """
     key_mapping = {}
     encoded_mapping = {}

src/wheezy/caching/memory.py

             True
             >>> c.store('k2', 'v2', 100)
             True
-            >>> c.get_multi(('k1', 'k2'))
-            {'k2': 'v2', 'k1': 'v1'}
+            >>> sorted(c.get_multi(('k1', 'k2')).items())
+            [('k1', 'v1'), ('k2', 'v2')]
 
             There is item in cache that expired
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.