Commits

Rune Halvorsen committed 1a8c9f6

pep8 fixes

  • Participants
  • Parent commits 7db3bf8

Comments (0)

Files changed (1)

             ("jsonlib", "write", "WriteError", "read", "ReadError"),
             ("simplejson", "dumps", TypeError, "loads", ValueError),
             ("json", "dumps", TypeError, "loads", ValueError),
-            ("django.utils.simplejson", "dumps", TypeError, "loads", ValueError)
-            ]
+            ("django.utils.simplejson", "dumps", TypeError, "loads",
+             ValueError)]
 
 
 def _attempt_load(modname, encname, encerror, decname, decerror):
         _serialize = getattr(mod, encname)
         _deserialize = getattr(mod, decname)
 
-        if  isclass(encerror) and issubclass(encerror, Exception):
+        if isclass(encerror) and issubclass(encerror, Exception):
             _ser_error = encerror
         else:
             _ser_error = getattr(mod, encerror)
     except ImportError:
         return False
 
+
 def force_implementation(modname):
     for name, spec in [(e[0], e) for e in _modules]:
         print "spce:", spec
 class JsonValueError(ValueError):
     pass
 
+
 class JsonTypeError(TypeError):
     pass
 
+
 def serialize(s):
     try:
         return _serialize(s)
     except _ser_error:
         raise JsonTypeError()
 
+
 def deserialize(s):
     try:
         return _deserialize(s)
         break
 else:
     raise ImportError("No json module found")
-
-