Skip to content

Commit

Permalink
Fixed a bug in Python 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed May 23, 2013
1 parent 0719379 commit 0631049
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGES
@@ -1,6 +1,12 @@
It's Dangerous Changelog
------------------------

Version 0.20
~~~~~~~~~~~~

- Fixed an incorrect call into `want_bytes` that broke some
uses of itsdangerous on Python 2.6.

Version 0.19
~~~~~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion itsdangerous.py
Expand Up @@ -58,7 +58,7 @@ def dumps(self, obj):

def want_bytes(s, encoding='utf-8', errors='strict'):
if isinstance(s, text_type):
s = s.encode(encoding, errors=errors)
s = s.encode(encoding, errors)
return s


Expand Down

0 comments on commit 0631049

Please sign in to comment.