diff options
-rw-r--r-- | pavement.py | 2 | ||||
-rw-r--r-- | pyload/cli/Cli.py | 1 | ||||
-rw-r--r-- | pyload/config/Parser.py | 1 | ||||
-rw-r--r-- | pyload/manager/AccountManager.py | 2 | ||||
-rw-r--r-- | pyload/manager/PluginManager.py | 2 | ||||
-rw-r--r-- | pyload/network/HTTPRequest.py | 2 |
6 files changed, 10 insertions, 0 deletions
diff --git a/pavement.py b/pavement.py index c052edce4..f435d23da 100644 --- a/pavement.py +++ b/pavement.py @@ -1,5 +1,7 @@ # -*- coding: utf-8 -*- +from __future__ import with_statement + from paver.easy import * from paver.setuputils import setup from paver.doctools import cog diff --git a/pyload/cli/Cli.py b/pyload/cli/Cli.py index cc285f060..510dae108 100644 --- a/pyload/cli/Cli.py +++ b/pyload/cli/Cli.py @@ -17,6 +17,7 @@ # ### from __future__ import with_statement + from getopt import GetoptError, getopt import pyload.utils.pylgettext as gettext diff --git a/pyload/config/Parser.py b/pyload/config/Parser.py index 50d862575..65e15ca85 100644 --- a/pyload/config/Parser.py +++ b/pyload/config/Parser.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- from __future__ import with_statement + from time import sleep from os.path import exists, join from shutil import copy diff --git a/pyload/manager/AccountManager.py b/pyload/manager/AccountManager.py index 9dc98770c..cd9d51da1 100644 --- a/pyload/manager/AccountManager.py +++ b/pyload/manager/AccountManager.py @@ -1,5 +1,7 @@ # -*- coding: utf-8 -*- +from __future__ import with_statement + from os.path import exists from shutil import copy diff --git a/pyload/manager/PluginManager.py b/pyload/manager/PluginManager.py index b071ac476..aa3668657 100644 --- a/pyload/manager/PluginManager.py +++ b/pyload/manager/PluginManager.py @@ -1,5 +1,7 @@ # -*- coding: utf-8 -*- +from __future__ import with_statement + import re import sys diff --git a/pyload/network/HTTPRequest.py b/pyload/network/HTTPRequest.py index c2442367a..0e310791d 100644 --- a/pyload/network/HTTPRequest.py +++ b/pyload/network/HTTPRequest.py @@ -16,6 +16,8 @@ @author: RaNaN """ +from __future__ import with_statement + import pycurl from codecs import getincrementaldecoder, lookup, BOM_UTF8 |