Commit Graph

30 Commits

Author SHA1 Message Date
Evan Hahn
e8b4b8f15c Scripts: subprocess.check_output should use text=True for compatibility
In Python 2, `subprocess.check_output` returns a string. In Python 3, it
returns a byte string unless you provide `text=True`.

This makes sure all calls have that option for compatibility.

Also, my editor was auto-formatting these with [Black][0], which I
didn't prevent, so now these files are formatted a little better.

[0]: https://github.com/psf/black
2022-03-24 17:28:12 -05:00
Evan Hahn
c254811765 Remove unnecessary coding: utf-8 heading from Python scripts
Python 3 uses UTF-8 for source files by default. This removes the
unnecessary `coding: utf-8` declaration comment from all files.
2022-03-21 14:43:45 -05:00
Evan Hahn
1101db6a29 Upgrade scripts to Python 3
Python 2 was [removed from macOS in 12.3][0]. This change:

- Automatically converts many files with [2to3][1]
- Manually updates all [shebangs][2] to use `python3` instead of
  versionless `python` or `python2.7`
- Manually applies a few fixes, many of which were noted by 2to3
- Manually undoes a few fixes that were automatically done by 2to3

[0]: https://www.macrumors.com/2022/01/28/apple-removing-python-2-in-macos-12-3/
[1]: https://docs.python.org/3/library/2to3.html
[2]: https://en.wikipedia.org/wiki/Shebang_(Unix)
2022-03-21 12:58:33 -05:00
Dimitris Apostolou
62724cf0be Fix typos 2022-03-18 11:31:06 -07:00
Matthew Chen
600f866c96 Update RI check. 2021-10-13 12:52:41 -03:00
Nora Trapp
e736f66490 RI script update 2021-06-18 12:24:55 -07:00
Matthew Chen
e06f7fb133 Tweak reverse_integration_check.py. 2021-05-17 23:39:39 -03:00
Matthew Chen
5a58216519 Update tags_to_ignore. 2021-05-05 15:24:18 -03:00
Nora Trapp
aeba62018a Ignore more tags in RI 2021-04-15 10:59:27 -07:00
Ehren Kret
82f3f3ed01 Change shebang line for pre and post commit scripts
These scripts are written for Python 2.7 and fail if python executable
points to Python 3.
2020-04-01 18:09:57 -07:00
Michael Kirk
cc6aafb7e6 marking internal build tag as such 2020-03-09 17:12:11 -06:00
Matthew Chen
6461ea372e Update RI check script. 2020-02-05 16:03:53 -03:00
Michael Kirk
f4dfd6973e ignore unmarked internal build 2019-12-05 16:39:45 -07:00
Nora Trapp
698989d8bb Ignore 2.46.0.26 2019-11-21 17:02:04 -08:00
Michael Kirk
9b69b6bc0b disable debug logging in script 2019-10-24 13:11:21 -06:00
Matthew Chen
64573a3e80 Fix RI check script. 2019-10-17 17:22:23 -03:00
Michael Kirk
3868a56b63 update tags_to_ignore 2019-09-25 18:34:08 -07:00
Michael Kirk
d06355c131 add to tags to ignore 2019-07-01 17:30:42 -06:00
Michael Kirk
535d798b01 add flag to run RI check off master 2019-07-01 17:30:28 -06:00
Michael Kirk
9c9545b408 update tags to ignore 2019-04-03 11:02:19 -06:00
Michael Kirk
62ce0339a5 Update tags to ignore, introduce scheme for ignoring internal tags 2019-03-25 08:55:24 -07:00
Matthew Chen
938353c14e Update reverse integration check. 2019-01-30 09:32:07 -05:00
Matthew Chen
eda7d6b458 Update 'tags to ignore.' 2018-12-05 14:13:26 -05:00
Michael Kirk
7b421ad4d4 Format tags_to_ignore 2018-11-09 16:04:21 -06:00
Matthew Chen
2629f0114a Update tags_to_ignore. 2018-09-27 15:46:18 -04:00
Michael Kirk
4b9d720b9f ignore RI check for unreleased 2.30 tags 2018-09-25 15:43:38 -06:00
Matthew Chen
d8c0f67569 Add list of tags to ignore to RI check script. 2018-06-08 12:37:27 -04:00
Michael Kirk
ab2ecf2f2f make failure more obvious
// FREEBIE
2018-05-31 15:52:18 -04:00
Michael Kirk
eca2af03bf Ignore adhoc tags in reverse_integration_check
// FREEBIE
2018-05-31 15:52:18 -04:00
Michael Kirk
72428350c2 Audit for missing reverse integration upon committing to master
This is meant as a nag. I'm not sure there'd be a good way to
catch-us-in-the-act unless we migrate to some merge tools a la git-flow.

// FREEBIE
2018-03-02 17:57:58 -05:00