1. Alexander Fedorov
  2. dogpile.cache

Source

dogpile.cache / tests / cache / __init__.py

Diff from to

File tests/cache/__init__.py

 import re
 
+
 def eq_(a, b, msg=None):
     """Assert a == b, with repr messaging on failure."""
     assert a == b, msg or "%r != %r" % (a, b)
     except except_cls as e:
         assert re.search(msg, str(e)), "%r !~ %s" % (msg, e)
 
-
-from dogpile.cache.util import py3k
-
-if py3k:
-    import configparser
-    import io
-else:
-    import ConfigParser as configparser
-    import StringIO as io
+from dogpile.compat import configparser, io