Fix flake8 errors outside src/
This commit is contained in:
Родитель
1304a5958e
Коммит
bd3500a392
|
@ -51,7 +51,7 @@ def extract_translations_for_given_locale(all_translations, locale):
|
|||
|
||||
def main():
|
||||
if not os.path.isdir('locale'):
|
||||
print ('Sorry, please run from the root of the project, '
|
||||
print('Sorry, please run from the root of the project, '
|
||||
'eg. ./locale/generate_category_po_files.py')
|
||||
return
|
||||
|
||||
|
|
|
@ -6,7 +6,8 @@ import shlex
|
|||
from pkg_resources import safe_name
|
||||
|
||||
import pip
|
||||
from pip.req.req_file import parse_requirements, build_parser, break_args_options
|
||||
from pip.req.req_file import (parse_requirements, build_parser,
|
||||
break_args_options)
|
||||
from hashin import run_single_package
|
||||
|
||||
|
||||
|
|
|
@ -116,7 +116,7 @@ INBOUND_EMAIL_VALIDATION_KEY = 'totally-unsecure-validation-string'
|
|||
# If you have settings you want to overload, put them in a local_settings.py.
|
||||
try:
|
||||
from local_settings import * # noqa
|
||||
except ImportError as exc:
|
||||
except ImportError:
|
||||
import warnings
|
||||
import traceback
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче