Skip to content

Commit e7ee43c

Browse files
refackTrott
authored andcommitted
python: make code compatible with Python3.7
* add Pipfile * de-lint with `flake8`
1 parent 2920347 commit e7ee43c

File tree

5 files changed

+21
-6
lines changed

5 files changed

+21
-6
lines changed
File renamed without changes.

Pipfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[[source]]
2+
url = "https://pypi.org/simple"
3+
verify_ssl = true
4+
name = "pypi"
5+
6+
[packages]
7+
ansible = "*"
8+
"flake8" = "*"
9+
"flake8-import-order" = "*"
10+
11+
[dev-packages]
12+
13+
[requires]
14+
python_version = "3.7"

ansible/plugins/inventory/nodejs_yaml.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,8 @@ def has_metadata(info):
295295

296296

297297
if __name__ == "__main__":
298-
parser = argparse.ArgumentParser()
299-
parser.add_argument('--list', action='store_true')
300-
parser.add_argument('--host', action='store')
301-
args = parser.parse_args()
302-
298+
# parser = argparse.ArgumentParser()
299+
# parser.add_argument('--list', action='store_true')
300+
# parser.add_argument('--host', action='store')
301+
# args = parser.parse_args()
303302
main()

jenkins/scripts/coverage/generate-index-html.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
with open('out/index.csv') as index:
77
index_csv = filter(lambda line: line, index.read().split('\n'))
88

9+
# noqa
910
with open('out/index.html', 'w') as out:
1011
out.write('''
1112
<!DOCTYPE html>

setup/www/host_vars/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
infra-*
1+
infra-*
2+
!node-www.tmpl

0 commit comments

Comments
 (0)