diff options
author | typebrook <typebrook@gmail.com> | 2020-03-27 00:15:33 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2020-03-27 00:16:08 +0800 |
commit | 21a642ea94c094ff69429e5634197882eac81d3a (patch) | |
tree | a0fb54abcb43ab9269a4ea44fa464c364791e817 | |
parent | ba127ee1c74204f3b051432e0a6fed4cb4b2288d (diff) |
Prevent language contains space
-rwxr-xr-x | gist | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -351,7 +351,7 @@ for gist in raw: | |||
351 | print(gist["html_url"], end=" ") | 351 | print(gist["html_url"], end=" ") |
352 | print(gist["public"], end=" ") | 352 | print(gist["public"], end=" ") |
353 | print(",".join(file["raw_url"] for file in gist["files"].values()), end=" ") | 353 | print(",".join(file["raw_url"] for file in gist["files"].values()), end=" ") |
354 | print(",".join(file["filename"] + "@" + str(file["language"]) for file in gist["files"].values()), end=" ") | 354 | print(",".join(file["filename"] + "@" + str(file["language"]).replace(" ", "-") for file in gist["files"].values()), end=" ") |
355 | print(len(gist["files"]), end=" ") | 355 | print(len(gist["files"]), end=" ") |
356 | print(gist["comments"], end=" ") | 356 | print(gist["comments"], end=" ") |
357 | print(gist["owner"]["login"], end=" ") | 357 | print(gist["owner"]["login"], end=" ") |