X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/35db0410eafcdcd3bd91caeb6711bcdc20df4c4e..ae44eb36129b207e217c3dea05e9a5cad2194fd5:/forum_modules/exporter/importer.py diff --git a/forum_modules/exporter/importer.py b/forum_modules/exporter/importer.py index 1519a44..c6b60ab 100644 --- a/forum_modules/exporter/importer.py +++ b/forum_modules/exporter/importer.py @@ -1,3 +1,5 @@ +from __future__ import with_statement + import os, tarfile, datetime, ConfigParser, logging from django.utils.translation import ugettext as _ @@ -14,12 +16,6 @@ from exporter import TMP_FOLDER, DATETIME_FORMAT, DATE_FORMAT, META_INF_SECTION, from orm import orm import commands, settings -# Try to import the with statement -try: - from __future__ import with_statement -except: - pass - NO_DEFAULT = object() import string