Skip to content

Commit a9a4730

Browse files
committed
Fix formatting issue by using other str formatting.
1 parent 702b380 commit a9a4730

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

responses.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -641,14 +641,14 @@ def _on_request(self, adapter, request, **kwargs):
641641
return _real_send(adapter, request, **kwargs)
642642

643643
error_msg = (
644-
u"Connection refused by Responses - the call doesn't "
644+
"Connection refused by Responses - the call doesn't "
645645
"match any registered mock.\n\n"
646646
"Request: \n"
647-
"- {0} {1}\n\n"
648-
"Available matches:\n".format(request.method, request.url)
647+
"- %s %s\n\n"
648+
"Available matches:\n" % (request.method, request.url)
649649
)
650650
for m in self._matches:
651-
error_msg += u"- {} {}\n".format(m.method, m.url)
651+
error_msg += "- {} {}\n".format(m.method, m.url)
652652

653653
response = ConnectionError(error_msg)
654654
response.request = request

0 commit comments

Comments
 (0)