mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-18 17:45:30 +01:00
Fix E401 multiple imports on one line
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user