Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/devbot/state.py
diff options
context:
space:
mode:
authorErik Price <erik.price16@gmail.com>2013-04-18 03:16:11 (GMT)
committer Erik Price <erik.price16@gmail.com>2013-04-18 03:16:11 (GMT)
commit47bd61ec9d0e471432f662ab223f1252febac455 (patch)
tree162d54d4745878e5ffef0ad8c0ba241d2775f7c6 /devbot/state.py
parent2775dc0f0c26424819a047a117c85c85bbda900f (diff)
Encode string before hashing to work with Python 3.
Diffstat (limited to 'devbot/state.py')
-rw-r--r--devbot/state.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/devbot/state.py b/devbot/state.py
index 0a6f7b9..0335b0c 100644
--- a/devbot/state.py
+++ b/devbot/state.py
@@ -117,4 +117,4 @@ def _compute_mtime_hash(path):
if ".git" in dirs:
dirs.remove(".git")
- return hashlib.sha256(data).hexdigest()
+ return hashlib.sha256(data.encode('utf-8')).hexdigest()