Skip to content

Commit

Permalink
tests are passing under python 2.6. unicode.encode did not support ke…
Browse files Browse the repository at this point in the history
…yword arguments back in 2.6.
  • Loading branch information
mahmoud committed Jul 20, 2016
1 parent f0fdc32 commit fb661e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lithoxyl/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ def check_encoding_settings(encoding, errors, reraise=True):
return False
try:
# then test error-handler
u'\xdd'.encode('ascii', errors=errors)
# python2.6 does not support kwargs for encode
u'\xdd'.encode('ascii', errors)
except LookupError as le:
if reraise:
raise ErrorBehaviorLookupError(le.message)
Expand Down

0 comments on commit fb661e4

Please sign in to comment.