Skip to content

Commit

Permalink
Minor change.
Browse files Browse the repository at this point in the history
  • Loading branch information
DJMcMayhem committed Sep 17, 2016
1 parent 2c8b5b7 commit 9a9522d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cinnamon-gum.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def bb96encode(code, a = 0, s = []):
return bytes(s)

def decompress(code):
mode = chr(code[0])
code = code[1:]
try:
decompressed_code = zlib.decompress(code, -zlib.MAX_WBITS)
Expand All @@ -24,7 +23,7 @@ def decompress(code):
except:
decompressed_code = bb96encode(code)

return mode, "".join(map(chr, decompressed_code))
return "".join(map(chr, decompressed_code))

def get_input(last_input):
try:
Expand Down Expand Up @@ -142,7 +141,8 @@ def execute(mode, code, input_str):
i = input()
exec(string)
else:
mode, code = decompress(string)
mode = string[0]
code = decompress(string)
input_pieces = pcre.split(r"(?<![^\\]\\)!", code)

if len(input_pieces) >= 2:
Expand Down

0 comments on commit 9a9522d

Please sign in to comment.