wxWidgets / Phoenix

wxPython's Project Phoenix. A new implementation of wxPython, better, stronger, faster than he was before.
http://wxpython.org/
2.21k stars 509 forks source link

remove Python2 hybridation code #2540

Open a-detiste opened 1 month ago

a-detiste commented 1 month ago

print() is available since Python 2.6

https://wiki.debian.org/Python3-six-removal

a-detiste commented 1 month ago

Thanks for the review

The right thing to do is to get rid of INTEGER_TYPES altogether:

-if type(commandTypeOrEvent) in INTEGER_TYPES:
+if isintance(commandTypeOrEvent, int):