Skip to content

Commit

Permalink
Better, but still hackish, escaping of unicode values
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Brockman committed May 28, 2010
1 parent 15d002e commit 0a85608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anygit/backends/mysql.py
Expand Up @@ -296,7 +296,7 @@ def _encode(self, value):
else:
return '0'
else:
return repr(str(value).lstrip('u'))
return repr(unicode(value)).lstrip('u')

def _prepare_params(self, id, attributes):
keys = []
Expand Down

0 comments on commit 0a85608

Please sign in to comment.