Skip to content

Commit

Permalink
deal with python2/3 incompatibilities
Browse files Browse the repository at this point in the history
  • Loading branch information
mubix authored Sep 16, 2020
1 parent 0fc6b93 commit ec20be5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/export_potfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@
if passw.startswith('$HEX['):
hexpassw = re.search('\$HEX\[([a-zA-Z0-9]+)\]', passw).group(1)
passw = bytearray.fromhex(hexpassw).decode('latin-1')
print(repr(passw)[1:][:-1])
if rep.startswith('u'):
print(rep[2:][:-1])
else:
print(rep[1:][:-1])

0 comments on commit ec20be5

Please sign in to comment.