Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use kitchen to_unicode. Fixes #12.

  • Loading branch information...
commit fc3067c6aa6edd4c5baee4f717cc0700f29802e7 1 parent 53b962a
Ralph Bean ralphbean authored
Showing with 3 additions and 1 deletion.
  1. +1 −0  setup.py
  2. +2 −1  summershum/utils.py
1  setup.py
View
@@ -11,6 +11,7 @@
install_requires=[
"fedmsg",
"sqlalchemy",
+ "kitchen",
],
packages=[
'summershum',
3  summershum/utils.py
View
@@ -6,6 +6,7 @@
from subprocess import Popen, PIPE
+from kitchen.text.converters import to_unicode
from model import File
import logging
@@ -113,4 +114,4 @@ def walk_directory(directory):
sha256sum = hashlib.sha256(contents).hexdigest()
sha1sum = hashlib.sha1(contents).hexdigest()
md5sum = hashlib.md5(contents).hexdigest()
- yield (file_path.decode('utf-8'), sha256sum, sha1sum, md5sum)
+ yield (to_unicode(file_path), sha256sum, sha1sum, md5sum)
Please sign in to comment.
Something went wrong with that request. Please try again.