Commit Graph

10 Commits

Author SHA1 Message Date
Alexandre Detiste
323e78c085 remove more Python2 hybridation 2025-02-02 20:29:49 -05:00
Edouard Choinière
7819799d0d Sort almost all usages of glob.glob for reproducible output
This will help diff-ing logs between invocations to see what is changing when refactoring. When used for creating an archive, it will help creating a reproducible file.
2025-01-28 03:28:11 +00:00
Per A. Brodtkorb
e4e8bf8317 Fixes issue 1571:
Adding missing close for open.
If the "close()" call is missing after a "open(filename)" call, the filename isn't guaranteed to be closed before the interpreter exits.
This is generally a bad practice as explained here: https://stackoverflow.com/questions/7395542/is-explicitly-closing-files-important

Also replaced "fid=open(filename) fid.close()" statements for files with the safer
"with open(filename) as fid:" blocks. See https://www.python.org/dev/peps/pep-0343/
2020-03-23 17:16:44 +01:00
Metallicow
c76384d458 Trim trailing whitespace *.py files 2018-01-16 08:47:07 -06:00
Robin Dunn
ac3282148b Update copyright in packaging and samples 2017-02-13 16:31:34 -08:00
Robin Dunn
a8bb3cf4e2 add standard file header
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-12-31 05:23:29 +00:00
Robin Dunn
34e8d2da1a Fix typo in comments.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74116 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-07 01:42:15 +00:00
Robin Dunn
223d0da20e Fix octal constant to be Py3 compatible
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73833 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-21 16:34:12 +00:00
Robin Dunn
25c53d08d4 Use exec() for Py3
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-03-30 04:41:32 +00:00
Robin Dunn
a18dffde8d Add a setup.py to the tarball to bootstrap automated builds made by pip or easy_install.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-03-27 04:28:34 +00:00