Skip to content

Commit ff5c247

Browse files
committed
Encode value when reprinting the object.
1 parent b9be05a commit ff5c247

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sqlparse/sql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def __str__(self):
2828
return unicode(self).encode('utf-8')
2929

3030
def __repr__(self):
31-
short = self._get_repr_value()
31+
short = self._get_repr_value().encode('utf-8')
3232
return '<%s \'%s\' at 0x%07x>' % (self._get_repr_name(),
3333
short, id(self))
3434

0 commit comments

Comments
 (0)