From 9f772a01ff1125aa59c122d3cb5854a6987b1d28 Mon Sep 17 00:00:00 2001 From: Luz Cazares Date: Wed, 28 Jun 2017 21:57:01 +0000 Subject: [PATCH] Fix some pep8 warning When running tox -epep8, few warnings are displayed. This patch is to fix them Change-Id: I3cbf9cbeacb7995b0ab30c167ff79b88874807fc --- tools/jsonToRst.py | 4 ++-- tools/push-csv.py | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/jsonToRst.py b/tools/jsonToRst.py index 1e96d0b9..081e07fe 100755 --- a/tools/jsonToRst.py +++ b/tools/jsonToRst.py @@ -77,8 +77,8 @@ with open(outFileName, "w") as outFile: # Correct Source if data.get('source') not in ( - 'http://git.openstack.org/cgit/openstack/defcore/', - 'http://git.openstack.org/cgit/openstack/interop/'): + 'http://git.openstack.org/cgit/openstack/defcore/', + 'http://git.openstack.org/cgit/openstack/interop/'): print_error("The expected interoperability guideline source not found") outFile.write(""" diff --git a/tools/push-csv.py b/tools/push-csv.py index 32cf240e..1c3958a9 100755 --- a/tools/push-csv.py +++ b/tools/push-csv.py @@ -14,7 +14,6 @@ # under the License. import argparse -import fileinput import os import subprocess import tempfile @@ -41,7 +40,7 @@ beforehand. After replacing these values, the script then retabulates the scores based on the new data. -"""), add_help=True, formatter_class=CustomFormatter) +"""), add_help=True, formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument("--file", "-f", metavar='f', type=str, action="store", dest="filename", default="tabulated_scores.csv") result = parser.parse_args()