mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +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:
|
for field in csvFile.fieldnames:
|
||||||
print(f' {field}')
|
print(f' {field}')
|
||||||
print()
|
print()
|
||||||
|
num_items = min(len(items), 10)
|
||||||
print(
|
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]:
|
for i in range(num_items):
|
||||||
c = '" "'.join(item)
|
c = ' '.join([item if (item and
|
||||||
print(f' "{c}"')
|
(item.find(' ') == -1) and
|
||||||
|
(item.find(',') == -1) and
|
||||||
|
(item.find("'") == -1))
|
||||||
|
else '"'+item+'"' for item in items[i]])
|
||||||
|
print(f' {c}')
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
elif command == 'version':
|
elif command == 'version':
|
||||||
doGAMVersion()
|
doGAMVersion()
|
||||||
|
|||||||
Reference in New Issue
Block a user