Clean up csvtest (#1209)

Let your formatter redo 13382/13386, I don't understand its rules
This commit is contained in:
Ross Scroggs
2020-06-05 10:37:44 -07:00
committed by GitHub
parent 4ccd51269a
commit af1e695661

View File

@@ -13383,12 +13383,17 @@ def ProcessGAMCommand(args):
for field in csvFile.fieldnames:
print(f' {field}')
print()
num_items = min(len(items), 10)
print(
'Here are the first 10 commands GAM will run (note that quoting may be lost/invalid in this output):\n'
f'Here are the first {num_items} commands GAM will run (note that quoting may be lost/invalid in this output):\n'
)
for item in items[:10]:
c = '" "'.join(item)
print(f' "{c}"')
for i in range(num_items):
c = ' '.join([item if (item and
(item.find(' ') == -1) and
(item.find(',') == -1) and
(item.find("'") == -1))
else '"'+item+'"' for item in items[i]])
print(f' {c}')
sys.exit(0)
elif command == 'version':
doGAMVersion()