Per A. Brodtkorb
|
033c18fd9f
|
Fixes issue #1556
Replaced XXX.keys() calls with idiomatic python 3 calls that are compatible with python 2 such as eg:
* replaced "y = xxx.keys()" or "y = list(xxx.keys())" with just "y = list(xxx)"
* replaced "sorted(xxx.keys())" or "sorted(list(xxx.keys()))" with just "sorted(xxx)"
* replaced "if not A in B.keys():" with "if A not in B:"
* replaced "for A in B.keys():" with "for A in B:"
See also https://python-future.org/compatible_idioms.html
https://python-future.org/compatible_idioms.html#dict-keys-values-items-as-a-list
|
2020-03-20 18:51:19 +01:00 |
|
Robin Dunn
|
8c79e98b57
|
randint wants integer values for the range
|
2017-04-07 12:26:09 -07:00 |
|
Steve Barnes
|
d4ea4cf0a8
|
Modifications to remove import six & use repr as per review comments
|
2016-06-04 06:45:26 +01:00 |
|
Steve Barnes
|
47a48ffcf0
|
DrawXXXList.py: replaced to occurences of dict.has_key(akey) with akey in dict.keys()
|
2016-06-02 07:11:29 +01:00 |
|
Robin Dunn
|
558fcfa5a3
|
PR61: Added python shebangs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75686 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2014-01-23 00:44:14 +00:00 |
|
Robin Dunn
|
48a7ecdd85
|
Remove all BeginDrawing/EndDrawing calls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74229 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2013-06-13 07:43:45 +00:00 |
|
Robin Dunn
|
f039f7c367
|
Initial port of wxPython demo from Classic to Phoenix.
Pulled and squashed from https://github.com/RobinD42/Phoenix/pull/7
Thanks Metallicow!
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2013-06-13 06:06:29 +00:00 |
|
Robin Dunn
|
f96e25db1f
|
Copy the wxPython demo from Classic
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
|
2013-06-11 18:24:09 +00:00 |
|