X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/71989f8232e1d24fe604bdd2333e9643195ebaed..8e91963c85103b7b47eb6e6d39656bc938c55e0e:/forum_modules/exporter/exporter.py diff --git a/forum_modules/exporter/exporter.py b/forum_modules/exporter/exporter.py index f23538e..49f89da 100644 --- a/forum_modules/exporter/exporter.py +++ b/forum_modules/exporter/exporter.py @@ -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 = []