Skip to content

Commit e9d5c5a

Browse files
author
Fred Ross
committed
Fixed infinite recursion in UrlEncoded.__repr__
1 parent 2b01ebf commit e9d5c5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

splunklib/binding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def __mod__(self, fields):
154154
"""
155155
raise TypeError("Cannot interpolate into a UrlEncoded object.")
156156
def __repr__(self):
157-
return "UrlEncoded(%s)" % repr(urllib.unquote(self))
157+
return "UrlEncoded(%s)" % repr(urllib.unquote(str(self)))
158158

159159
@contextmanager
160160
def _handle_auth_error(msg):

0 commit comments

Comments
 (0)