fixing with_statement import
authorFlorian Schweikert <kelvan@logic.at>
Mon, 31 Oct 2011 14:44:00 +0000 (15:44 +0100)
committerFlorian Schweikert <kelvan@logic.at>
Mon, 31 Oct 2011 14:44:00 +0000 (15:44 +0100)
gotovienna/cache.py

index aa2efe6..0332a95 100644 (file)
@@ -1,3 +1,4 @@
+from __future__ import with_statement
 from os import path
 try:
     import json
@@ -6,10 +7,6 @@ except ImportError:
 import shutil
 import defaults
 import realtime
-try:
-    from __future__ import with_statement
-except:
-    pass
 
 
 def load(p, typ):