Skip to content

Commit e620f12

Browse files
committed
Fix script to get rid of last comma in the python script.
1 parent bff8f10 commit e620f12

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/user/transition.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ script to help with the transition:
5555
for snip in snippets:
5656
if not('tags' in snip):
5757
snip["tags"] = []
58-
print(snip, end=",\n")
58+
if snippets.index(snip) == len(snippets)-1:
59+
print(snip)
60+
else:
61+
print(snip, end=",\n")
5962
6063
6164
This script will concatenate and print out all of the json objects in a /snippets folder

0 commit comments

Comments
 (0)