Commits

Andriy Kornatskyy committed e73101d

Fixed compatibility issue with python3.3

Comments (0)

Files changed (3)

 		echo 'done.'; \
 	fi
 	$(EASY_INSTALL) -i $(PYPI) -O2 coverage nose pytest \
-		pytest-pep8 pytest-cov wsgiref
+		pytest-pep8 pytest-cov
 	# The following packages available for python < 3.0
 	#if [ "$$(echo $(VERSION) | sed 's/\.//')" -lt 30 ]; then \
 	#	$(EASY_INSTALL) sphinx; \

src/wheezy/core/collections.py

         access to dictionary.
 
         >>> d = attrdict(a=1, b=2)
-        >>> d
-        {'a': 1, 'b': 2}
+        >>> sorted(d.items())
+        [('a', 1), ('b', 2)]
         >>> d.a
         1
 
         If the order is not important consider using ``set`` which is
         approximately eight times faster on large sequences.
 
-        >>> list(set('1234512345'))
-        ['1', '3', '2', '5', '4']
+        >>> sorted(list(set('1234512345')))
+        ['1', '2', '3', '4', '5']
     """
     unique = {}
     for item in seq:

src/wheezy/core/i18n.py

             >>> curdir = os.path.dirname(__file__)
             >>> localedir = os.path.join(curdir, 'tests', 'i18n')
             >>> tm = TranslationsManager(directories=[localedir])
-            >>> tuple(tm.translations.keys())
-            ('de', 'en')
+            >>> sorted(tm.translations.keys())
+            ['de', 'en']
         """
         self.default_lang = default_lang
         self.fallbacks = {}
             >>> localedir = os.path.join(curdir, 'tests', 'i18n')
             >>> tm = TranslationsManager()
             >>> tm.load(localedir)
-            >>> tuple(tm.translations.keys())
-            ('de', 'en')
+            >>> sorted(tm.translations.keys())
+            ['de', 'en']
             >>> lang = tm['en']
             >>> m = lang['messages']
             >>> m.gettext('hello')