Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/devbot
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
parent2775dc0f0c26424819a047a117c85c85bbda900f (diff)
Encode string before hashing to work with Python 3.
Diffstat (limited to 'devbot')
-rw-r--r--devbot/plugins/gentoo.py4
-rw-r--r--devbot/state.py2
2 files changed, 1 insertions, 5 deletions
diff --git a/devbot/plugins/gentoo.py b/devbot/plugins/gentoo.py
index a9c3509..3b0e5fb 100644
--- a/devbot/plugins/gentoo.py
+++ b/devbot/plugins/gentoo.py
@@ -81,10 +81,6 @@ class PackageManager(interfaces.PackageManager):
if dep not in result:
result.append(dep)
-
-
- pass
-
distro.register_package_manager("gentoo", PackageManager)
class DistroInfo(interfaces.DistroInfo):
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()