Skip to content

Commit ebe6d44

Browse files
committed
minor fixes
1 parent bdabdc0 commit ebe6d44

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

‎charcoal.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4778,7 +4778,8 @@ def TIOEncode(code, inp=None, args=None):
47784778
if inp is None:
47794779
state += sep + bytes([])
47804780
for arg in args:
4781-
state += sep + bytes(arg, "utf-8")
4781+
if arg != "--cg" and arg != "--ppcg":
4782+
state += sep + bytes(arg, "utf-8")
47824783
return "https://tio.run/##" + base64.b64encode(
47834784
zlib.compress(state, 9)[2:-4]
47844785
).decode("ascii").replace("+", "@").replace("=", "")
@@ -5123,7 +5124,7 @@ def b36(n):
51235124
return r
51245125
nonce = b36(int(now()*1000))
51255126
warn("""\
5126-
[Charcoal], %s byte%s
5127+
# [Charcoal], %s byte%s
51275128
51285129
%s
51295130

‎charcoaltoken.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
]
5353

5454

55-
class CharcoalToken(object):
55+
class CharcoalToken:
5656
pass
5757

5858
for i in range(len(CharcoalTokenNames)):

0 commit comments

Comments
 (0)