Rune Halvorsen avatar Rune Halvorsen committed 1a8c9f6

pep8 fixes

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")
-
-
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.