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 readline = None
try: try:
import termios
import fcntl import fcntl
import struct import struct
import termios
except ImportError: except ImportError:
termios = None
fcntl = None fcntl = None
struct = None struct = None
termios = None
# A poor man's argparse/getopt - but it works for our use case :) # A poor man's argparse/getopt - but it works for our use case :)
verbose = False verbose = False

View File

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

View File

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