Skip to content

Commit

Permalink
Merge pull request google#2 from google/revert-1-master
Browse files Browse the repository at this point in the history
Revert "add encode before hasing key source"
  • Loading branch information
tushuhei authored Sep 29, 2016
2 parents 76cfb2a + 951cbf9 commit a6c8f98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion budou/budou.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def _get_cache_key(self, source, classname):
"""Returns a cache key for the given source and class name."""
key_source = '%s:%s:%s' % (
CACHE_SALT, source.encode('utf8'), classname.encode('utf8'))
return hashlib.md5(key_source.encode()).hexdigest()
return hashlib.md5(key_source).hexdigest()


def _get_annotations(self, text, encoding='UTF32'):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

setup(
name='budou',
version='0.1.2',
version='0.1.1',
author='Shuhei Iitsuka',
author_email='[email protected]',
description='CJK Line Break Organizer',
Expand Down

0 comments on commit a6c8f98

Please sign in to comment.