Skip to content
This repository has been archived by the owner on Jul 24, 2018. It is now read-only.

Commit

Permalink
Use kitchen to_unicode. Fixes #12.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Feb 21, 2014
1 parent 53b962a commit fc3067c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -11,6 +11,7 @@
install_requires=[ install_requires=[
"fedmsg", "fedmsg",
"sqlalchemy", "sqlalchemy",
"kitchen",
], ],
packages=[ packages=[
'summershum', 'summershum',
Expand Down
3 changes: 2 additions & 1 deletion summershum/utils.py
Expand Up @@ -6,6 +6,7 @@


from subprocess import Popen, PIPE from subprocess import Popen, PIPE


from kitchen.text.converters import to_unicode
from model import File from model import File


import logging import logging
Expand Down Expand Up @@ -113,4 +114,4 @@ def walk_directory(directory):
sha256sum = hashlib.sha256(contents).hexdigest() sha256sum = hashlib.sha256(contents).hexdigest()
sha1sum = hashlib.sha1(contents).hexdigest() sha1sum = hashlib.sha1(contents).hexdigest()
md5sum = hashlib.md5(contents).hexdigest() md5sum = hashlib.md5(contents).hexdigest()
yield (file_path.decode('utf-8'), sha256sum, sha1sum, md5sum) yield (to_unicode(file_path), sha256sum, sha1sum, md5sum)

0 comments on commit fc3067c

Please sign in to comment.