diff --git a/docs/source/genapi.py b/docs/source/genapi.py index 9994c52a..d0214c13 100755 --- a/docs/source/genapi.py +++ b/docs/source/genapi.py @@ -1,7 +1,5 @@ #!/usr/bin/env python -from __future__ import with_statement - import os diff --git a/setup.py b/setup.py index 4cd9fe68..b28c8943 100755 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ #! /usr/bin/env python # -*- coding: utf-8 -*- -# Copyright(C) 2010-2011 Christophe Benz +# Copyright(C) 2010-2013 Christophe Benz, Laurent Bachelier # # This file is part of weboob. # @@ -19,8 +19,6 @@ # along with weboob. If not, see . -from __future__ import with_statement - from setuptools import find_packages, setup import glob @@ -182,7 +180,8 @@ if sys.version_info[0] > 2: print >>sys.stderr, 'Python 3 is not supported.' sys.exit(1) if sys.version_info[1] < 6: # older than 2.6 - requirements.append('simplejson') + print >>sys.stderr, 'Python older than 2.6 is not supported.' + sys.exit(1) if not options.deps: requirements = [] @@ -202,7 +201,6 @@ setup( 'Environment :: Console', 'Environment :: X11 Applications :: Qt', 'License :: OSI Approved :: GNU Affero General Public License v3', - 'Programming Language :: Python :: 2.5', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python', diff --git a/tools/make_man.py b/tools/make_man.py index 867b8d5f..56a1cb19 100755 --- a/tools/make_man.py +++ b/tools/make_man.py @@ -18,8 +18,6 @@ # You should have received a copy of the GNU Affero General Public License # along with weboob. If not, see . -from __future__ import with_statement - import sys import os import tempfile