pep8
authorEmmanuel Garette <egarette@cadoles.com>
Tue, 27 Aug 2013 15:13:20 +0000 (17:13 +0200)
committerEmmanuel Garette <egarette@cadoles.com>
Tue, 27 Aug 2013 15:13:20 +0000 (17:13 +0200)
tiramisu/setting.py

index e6bc645..d99a02e 100644 (file)
@@ -222,9 +222,8 @@ def get_storage(context, session_id, persistent):
 
     if session_id is None:
         session_id = gen_id(context)
-    a=__import__(storage_type.get_storage(), globals(), locals(),
+    return __import__(storage_type.get_storage(), globals(), locals(),
                       ['Storage'], -1).Storage(session_id, persistent)
-    return a
 
 
 def list_sessions():
@@ -496,7 +495,7 @@ class Settings(object):
                                              "'{1}'").format(path, reqpath))
                 try:
                     value = self.context()._getattr(reqpath,
-                                                  force_permissive=True)
+                                                    force_permissive=True)
                 except PropertiesOptionError, err:
                     if not transitive:
                         continue