diff --git a/headphones/common.py b/headphones/common.py index bc6c9554..02bfc3a2 100644 --- a/headphones/common.py +++ b/headphones/common.py @@ -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 diff --git a/headphones/searcher.py b/headphones/searcher.py index 89e8f6ed..f5293333 100644 --- a/headphones/searcher.py +++ b/headphones/searcher.py @@ -15,7 +15,8 @@ # NZBGet support added by CurlyMo 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 diff --git a/headphones/utorrent.py b/headphones/utorrent.py index b984adac..ede1de55 100644 --- a/headphones/utorrent.py +++ b/headphones/utorrent.py @@ -13,8 +13,14 @@ # You should have received a copy of the GNU General Public License # along with Headphones. If not, see . -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 diff --git a/headphones/webserve.py b/headphones/webserve.py index 95b1014f..6605661c 100644 --- a/headphones/webserve.py +++ b/headphones/webserve.py @@ -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")