summaryrefslogtreecommitdiffstats
path: root/pyload
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-07 16:08:27 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-07 16:08:27 +0100
commit16e1ee584d6ddec46ffbef8c9b1d52c51a826648 (patch)
tree14faa01a7a1adf25b7e80ba735b1d8de0548a2a2 /pyload
parentFix previous merge (diff)
downloadpyload-16e1ee584d6ddec46ffbef8c9b1d52c51a826648.tar.xz
Fix with_statement
Diffstat (limited to 'pyload')
-rw-r--r--pyload/cli/Cli.py1
-rw-r--r--pyload/config/Parser.py1
-rw-r--r--pyload/manager/AccountManager.py2
-rw-r--r--pyload/manager/PluginManager.py2
-rw-r--r--pyload/network/HTTPRequest.py2
5 files changed, 8 insertions, 0 deletions
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