bottlepy / bottle

bottle.py is a fast and simple micro-framework for python web-applications.
http://bottlepy.org/
MIT License
8.4k stars 1.46k forks source link

refactor BaseRequest.script_name #1284

Closed SergBobrovsky closed 3 years ago

SergBobrovsky commented 3 years ago

f-string better and shorter script_name as local var inside func script_name() - not good

defnull commented 3 years ago

f-strings are not used anywhere in bottle yet. No need to introduce them now and completely break compatibility for older python versions.

SergBobrovsky commented 3 years ago

I thought the minimum python version for bottle would be 3.6 f-string works from 3.6 ok, no more f-strings