bottlepy / bottle

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

MultiDict.iterkeys in python 3 #1112

Open akva opened 5 years ago

akva commented 5 years ago

https://github.com/bottlepy/bottle/blob/9fb3b05846b33e508545a26e424785e151d02323/bottle.py#L2120

Why is this line here? .iterkeys is not supported in Python 3.

defnull commented 5 years ago

To offer the same API in python 2 and 3 and simplify some test cases, if I remember correctly. Not the best design decision that was ever made, but these aliases probably do not hurt much. Removing them is an option, though, by adding a deprecation warning to them and rewrite the tests that use them.