flake8 fixes

This commit is contained in:
blitzmann
2017-05-08 21:27:25 -04:00
parent 42e64a6223
commit 3de63c5ca5
32 changed files with 86 additions and 41 deletions

View File

@@ -24,7 +24,6 @@ import platform
import re
import sys
import traceback
from imp import find_module
from optparse import AmbiguousOptionError, BadOptionError, OptionParser
from logbook import CRITICAL, DEBUG, ERROR, FingersCrossedHandler, INFO, Logger, NestedSetup, NullHandler, StreamHandler, TimedRotatingFileHandler, WARNING, \
@@ -359,6 +358,7 @@ if __name__ == "__main__":
if 'wxMac' not in wx.PlatformInfo or ('wxMac' in wx.PlatformInfo and wx.VERSION >= (3, 0)):
try:
import requests
config.requestsVersion = requests.__version
except ImportError:
raise PreCheckException("Cannot import requests. You can download requests from https://pypi.python.org/pypi/requests.")