X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/35db0410eafcdcd3bd91caeb6711bcdc20df4c4e..e5cc68e7511d5c57b88a7acab4119f3cef55b1ce:/forum_modules/exporter/views.py diff --git a/forum_modules/exporter/views.py b/forum_modules/exporter/views.py index 8560179..edbeedc 100644 --- a/forum_modules/exporter/views.py +++ b/forum_modules/exporter/views.py @@ -1,3 +1,5 @@ +from __future__ import with_statement + import os, tarfile, ConfigParser, datetime from StringIO import StringIO @@ -16,13 +18,6 @@ from forum import settings from exporter import export, CACHE_KEY, EXPORT_STEPS, DATE_AND_AUTHOR_INF_SECTION, DATETIME_FORMAT from importer import start_import -# Try to import the with statement -try: - from __future__ import with_statement -except: - pass - - @admin_tools_page(_('exporter'), _('XML data export')) def exporter(request): state = cache.get(CACHE_KEY)