Skip to content

Commit e8ca089

Browse files
rue-kcarltonarianamiri
authored andcommitted
WEB-2469 __unicode__ method no longer exists in python3, so use the existing __str__ method instead since it is already working for both python 2 and 3
1 parent 0c433be commit e8ca089

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

haystack/inputs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __init__(self, query_string, **kwargs):
2121
self.kwargs = kwargs
2222

2323
def __repr__(self):
24-
return u"<%s '%s'>" % (self.__class__.__name__, self.__unicode__().encode('utf8'))
24+
return u"<%s '%s'>" % (self.__class__.__name__, self.__str__())
2525

2626
def __str__(self):
2727
return force_text(self.query_string)

0 commit comments

Comments
 (0)