projects
/
mudpy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix an incorrect TODO comment line
[mudpy.git]
/
lib
/
mudpy
/
password.py
diff --git
a/lib/mudpy/password.py
b/lib/mudpy/password.py
index
68e1a5f
..
bad5579
100644
(file)
--- a/
lib/mudpy/password.py
+++ b/
lib/mudpy/password.py
@@
-162,7
+162,7
@@
def create(
# number of times
for i in range(2 ** rounds):
hashed = algorithms[algorithm](hashed.encode("utf-8")).digest()
# number of times
for i in range(2 ** rounds):
hashed = algorithms[algorithm](hashed.encode("utf-8")).digest()
- # TODO: remove this
exception trap after the switch to py2
k
+ # TODO: remove this
check after the switch to py3
k
try:
hashed = "".join(format(x, "02x") for x in bytes(hashed))
except ValueError:
try:
hashed = "".join(format(x, "02x") for x in bytes(hashed))
except ValueError: