mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-28 09:51:36 +00:00
Clean up csvtest (#1209)
Let your formatter redo 13382/13386, I don't understand its rules
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user