Skip to content

Commit

Permalink
Fix codepage
Browse files Browse the repository at this point in the history
  • Loading branch information
somebody1234 committed Aug 24, 2018
1 parent 0990b9f commit 3a9f8b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions codepage.py
Expand Up @@ -44,7 +44,7 @@ def add_character(character, result):
add_character(high, chr(ord(low) + 128))
keys = list(UnicodeLookup.keys())
values = list(UnicodeLookup.values())
for character in range(0, 257):
for character in range(256):
char = chr(character)
value = char
if char not in keys:
Expand All @@ -66,7 +66,7 @@ def add_character(character, result):
values = list(UnicodeLookup.values())
for key in UnicodeLookup:
ReverseLookup[UnicodeLookup[key]] = key
for ordinal in range(0, 257):
for ordinal in range(256):
OrdinalLookup[UnicodeLookup[chr(ordinal)]] = ordinal
Codepage = [UnicodeLookup.get(chr(code), chr(code)) for code in range(0, 256)]

Expand Down

0 comments on commit 3a9f8b8

Please sign in to comment.