Fix E401 multiple imports on one line

This commit is contained in:
Jesse Mullan
2014-11-01 16:31:32 -07:00
parent 72852e04da
commit 7c98cbeb65
4 changed files with 18 additions and 6 deletions
+4 -1
View File
@@ -18,7 +18,10 @@ Created on Aug 1, 2011
@author: Michael
'''
import platform, operator, os, re
import platform
import operator
import os
import re
from headphones import version
+2 -1
View File
@@ -15,7 +15,8 @@
# NZBGet support added by CurlyMo <curlymoo1@gmail.com> as a part of XBian - XBMC on the Raspberry Pi
import urllib, urlparse
import urllib
import urlparse
from pygazelle import api as gazelleapi
from pygazelle import encoding as gazelleencoding
from pygazelle import format as gazelleformat
+8 -2
View File
@@ -13,8 +13,14 @@
# You should have received a copy of the GNU General Public License
# along with Headphones. If not, see <http://www.gnu.org/licenses/>.
import urllib, urllib2, urlparse, cookielib
import json, re, os, time
import urllib
import urllib2
import urlparse
import cookielib
import json
import re
import os
import time
import headphones
+4 -2
View File
@@ -340,7 +340,8 @@ class WebInterface(object):
# Handle situations where the torrent url contains arguments that are parsed
if kwargs:
import urllib, urllib2
import urllib
import urllib2
url = urllib2.quote(url, safe=":?/=&") + '&' + urllib.urlencode(kwargs)
try:
@@ -898,7 +899,8 @@ class WebInterface(object):
def generateAPI(self):
import hashlib, random
import hashlib
import random
apikey = hashlib.sha224(str(random.getrandbits(256))).hexdigest()[0:32]
logger.info("New API generated")