Skip to content

Commit

Permalink
Merge pull request #39 from jezdez/master
Browse files Browse the repository at this point in the history
Fixed NameError introduced in e12e422
  • Loading branch information
codeinthehole committed Mar 17, 2015
2 parents b57b77a + 622fbc9 commit 3f8b36e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cacheback/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def to_bytestring(value):
bytestring or unicode string so must distinguish between the two.
"""
if isinstance(value, six.text_type):
return string.encode('utf8')
return value.encode('utf8')
if isinstance(value, six.binary_type):
return value
if six.PY2:
Expand Down

0 comments on commit 3f8b36e

Please sign in to comment.