fix isort warnings

This commit is contained in:
Eric Le Lay 2020-09-07 11:48:48 +02:00
parent c9ba877a12
commit 24c94d004a
3 changed files with 4 additions and 7 deletions

View File

@ -96,13 +96,13 @@ except ImportError:
readline = None
try:
import termios
import fcntl
import struct
import termios
except ImportError:
termios = None
fcntl = None
struct = None
termios = None
# A poor man's argparse/getopt - but it works for our use case :)
verbose = False

View File

@ -43,9 +43,7 @@ except ImportError:
# Also note that it only works when gPodder is not running !
# For some reason I don't get the events afterwards...
try:
from AppKit import NSObject
from AppKit import NSAppleEventManager
from AppKit import NSAppleEventDescriptor
from AppKit import NSAppleEventDescriptor, NSAppleEventManager, NSObject
class gPodderEventHandler(NSObject):
""" handles Apple Events for :

View File

@ -16,12 +16,11 @@ from jinja2 import Template
def debug_requests():
""" turn requests debug on """
import logging
# These two lines enable debugging at httplib level (requests->urllib3->http.client)
# You will see the REQUEST, including HEADERS and DATA, and RESPONSE with HEADERS but without DATA.
# The only thing missing will be the response.body which is not logged.
import http.client as http_client
import logging
http_client.HTTPConnection.debuglevel = 1
# You must initialize logging, otherwise you'll not see debug output.