Pārlūkot izejas kodu

fix for python 3.7

Falko Schindler 3 gadi atpakaļ
vecāks
revīzija
868a2d1a6f
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      main.py

+ 1 - 1
main.py

@@ -494,7 +494,7 @@ with example(get_decorator):
 
 
     @ui.get('/another/route/{id}')
     @ui.get('/another/route/{id}')
     def produce_plain_response(id: str, request: requests.Request):
     def produce_plain_response(id: str, request: requests.Request):
-        return responses.PlainTextResponse(f'{request.client.host} asked for {id=}')
+        return responses.PlainTextResponse(f'{request.client.host} asked for id={id}')
 
 
     ui.link('Try yet another route!', '/another/route/42')
     ui.link('Try yet another route!', '/another/route/42')