]> git.openstreetmap.org Git - osqa.git/blobdiff - forum_modules/exporter/exporter.py
#OSQA-574, a bit of backwards compatibility, importing the with_statements from the...
[osqa.git] / forum_modules / exporter / exporter.py
index f23538e43f44d2cec8078584eef7e65988916cdd..49f89da34941e75f7e80f90e1064801846b29446 100644 (file)
@@ -1,3 +1,5 @@
+from __future__ import with_statement
+
 import os, tarfile, datetime, logging, re, ConfigParser, shutil, zipfile
 
 from django.core.cache import cache
@@ -12,12 +14,6 @@ from forum import settings
 from django.conf import settings as djsettings
 import settings as selfsettings
 
-# Try to import the with statement
-try:
-    from __future__ import with_statement
-except:
-    pass
-
 CACHE_KEY = "%s_exporter_state" % APP_URL
 EXPORT_STEPS = []