fix flake8 reports

Change-Id: Iab40f2a1ab00e584cb89d4b1cdf460d7f90aa6ae
This commit is contained in:
Frederic Lepied 2017-03-03 10:05:19 +01:00
parent 3c5f2fc05b
commit d8610b5953
4 changed files with 5 additions and 1 deletions

View File

@ -31,6 +31,7 @@ def printHelpArrays(input):
return output[0:-2] return output[0:-2]
wrapper = textwrap.TextWrapper(width=79, subsequent_indent=' ') wrapper = textwrap.TextWrapper(width=79, subsequent_indent=' ')
inFileName = "NONE" inFileName = "NONE"

View File

@ -23,6 +23,7 @@ commands=
[testenv:pep8] [testenv:pep8]
basepython = python2.7 basepython = python2.7
deps = deps =
flake8
{[testenv]deps} {[testenv]deps}
commands= commands=
bash tools/flake8wrap.sh bash tools/flake8wrap.sh

3
working_materials/find_additional_properties.py Normal file → Executable file
View File

@ -45,7 +45,7 @@ def show_outcome(stream, test):
global RESULTS global RESULTS
status = test['status'] status = test['status']
if status == 'exists': if status == 'exists':
returnmime return
if status == 'fail': if status == 'fail':
for raw_name in test['details']: for raw_name in test['details']:
name = raw_name.split(':')[0] name = raw_name.split(':')[0]
@ -73,6 +73,7 @@ def show_outcome(stream, test):
elif status == 'skip': elif status == 'skip':
SKIPS.append(test) SKIPS.append(test)
stream = subunit.ByteStreamToStreamResult( stream = subunit.ByteStreamToStreamResult(
sys.stdin, non_subunit_name='stdout') sys.stdin, non_subunit_name='stdout')
outcome = testtools.StreamToDict( outcome = testtools.StreamToDict(

View File

@ -26,6 +26,7 @@ class CustomFormatter(argparse.ArgumentDefaultsHelpFormatter,
argparse.RawDescriptionHelpFormatter): argparse.RawDescriptionHelpFormatter):
pass pass
# Set up command line arguments. # Set up command line arguments.
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
description=textwrap.dedent("""\ description=textwrap.dedent("""\