Bug 1466222 - Noqa the pythonpath magic to avoid warnings about module imports not being first r=catlee

for "Cleanup l10n mozharness config files." (Batch 2)

Differential Revision: https://phabricator.services.mozilla.com/D1540

--HG--
extra : source : 9250705be918a4e8a9ee35e353f42c048d5f1a15
This commit is contained in:
Justin Wood 2018-06-04 14:04:35 -04:00
Родитель 8c5dff3ef1
Коммит eb0ea0288d
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -15,7 +15,7 @@ import sys
import shlex
# load modules from parent dir
sys.path.insert(1, os.path.dirname(sys.path[0]))
sys.path.insert(1, os.path.dirname(sys.path[0])) # noqa
from mozharness.base.errors import MakefileErrorList
from mozharness.base.script import BaseScript

Просмотреть файл

@ -22,7 +22,7 @@ except ImportError:
import json
# load modules from parent dir
sys.path.insert(1, os.path.dirname(sys.path[0]))
sys.path.insert(1, os.path.dirname(sys.path[0])) # noqa
from mozharness.base.errors import MakefileErrorList
from mozharness.base.log import OutputParser