aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2020-04-15 18:22:52 +0800
committertypebrook <typebrook@gmail.com>2020-04-15 18:22:52 +0800
commit599248d7c740468c4911302dcbb35ad9b90ff2c9 (patch)
tree597950437f5c2ed598f34d6cb63ab4d62640b2f4
parentea39f1779891c868eceb8d3c8e3fa310f07f128c (diff)
Add processing for filename with space
-rwxr-xr-xgist2
1 files changed, 1 insertions, 1 deletions
diff --git a/gist b/gist
index c7bfb93..0065ef0 100755
--- a/gist
+++ b/gist
@@ -368,7 +368,7 @@ for gist in raw:
368 print(gist["html_url"], end=" ") 368 print(gist["html_url"], end=" ")
369 print(gist["public"], end=" ") 369 print(gist["public"], end=" ")
370 print(",".join(file["raw_url"] for file in gist["files"].values()), end=" ") 370 print(",".join(file["raw_url"] for file in gist["files"].values()), end=" ")
371 print(",".join(file["filename"] + "@" + str(file["language"]).replace(" ", "-") for file in gist["files"].values()), end=" ") 371 print(",".join(file["filename"].replace(" ", "-") + "@" + str(file["language"]).replace(" ", "-") for file in gist["files"].values()), end=" ")
372 print(len(gist["files"]), end=" ") 372 print(len(gist["files"]), end=" ")
373 print(gist["comments"], end=" ") 373 print(gist["comments"], end=" ")
374 print(gist["owner"]["login"], end=" ") 374 print(gist["owner"]["login"], end=" ")