Mon, 21 Feb 2022 10:40:58 -0700 chgserver: remove Python 2 branch
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:40:58 -0700] rev 48993
chgserver: remove Python 2 branch Differential Revision: https://phab.mercurial-scm.org/D12305
Mon, 21 Feb 2022 10:39:48 -0700 worker: remove Python 2 support code
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:39:48 -0700] rev 48992
worker: remove Python 2 support code Differential Revision: https://phab.mercurial-scm.org/D12304
Mon, 21 Feb 2022 10:39:09 -0700 wireprotoframing: remove Python 2 support code
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:39:09 -0700] rev 48991
wireprotoframing: remove Python 2 support code Differential Revision: https://phab.mercurial-scm.org/D12303
Mon, 21 Feb 2022 10:38:27 -0700 windows: remove write throttling support
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:38:27 -0700] rev 48990
windows: remove write throttling support This mode would only be active on Python 2, which is no longer supported. Differential Revision: https://phab.mercurial-scm.org/D12302
Mon, 21 Feb 2022 10:36:44 -0700 windows: remove conditional for Python 3
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:36:44 -0700] rev 48989
windows: remove conditional for Python 3 Differential Revision: https://phab.mercurial-scm.org/D12301
Mon, 21 Feb 2022 10:35:42 -0700 util: remove superfluous ispy3 test
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:35:42 -0700] rev 48988
util: remove superfluous ispy3 test Differential Revision: https://phab.mercurial-scm.org/D12300
Mon, 21 Feb 2022 10:35:20 -0700 urllibcompat: remove Python 2 support code
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:35:20 -0700] rev 48987
urllibcompat: remove Python 2 support code We had to move the `import` statements to appease the import checker. This whole module could probably be deleted as its point in life is to pave over Python 2/3 differences. But that's for a different commit. Differential Revision: https://phab.mercurial-scm.org/D12299
Mon, 21 Feb 2022 10:32:45 -0700 keepalive: remove Python 2 support code
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:32:45 -0700] rev 48986
keepalive: remove Python 2 support code Differential Revision: https://phab.mercurial-scm.org/D12298
Mon, 21 Feb 2022 10:31:53 -0700 extensions: remove superfluous pycompat.ispy3 check
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:31:53 -0700] rev 48985
extensions: remove superfluous pycompat.ispy3 check This is always True now. Differential Revision: https://phab.mercurial-scm.org/D12297
Mon, 21 Feb 2022 10:31:00 -0700 archival: remove check for Python 2
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:31:00 -0700] rev 48984
archival: remove check for Python 2 Differential Revision: https://phab.mercurial-scm.org/D12296
Thu, 03 Mar 2022 07:58:29 -0800 encoding: remove Python 2 support code
Gregory Szorc <gregory.szorc@gmail.com> [Thu, 03 Mar 2022 07:58:29 -0800] rev 48983
encoding: remove Python 2 support code Differential Revision: https://phab.mercurial-scm.org/D12295
Mon, 21 Feb 2022 10:28:19 -0700 dispatch: remove Python 2 function variants
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:28:19 -0700] rev 48982
dispatch: remove Python 2 function variants Differential Revision: https://phab.mercurial-scm.org/D12294
Mon, 21 Feb 2022 10:27:34 -0700 config: remove conditional asserts
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:27:34 -0700] rev 48981
config: remove conditional asserts We always run on Python 3 now. Differential Revision: https://phab.mercurial-scm.org/D12293
Mon, 21 Feb 2022 10:27:02 -0700 error: unconditionally define __str__
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:27:02 -0700] rev 48980
error: unconditionally define __str__ We always run on Python 3 now. Differential Revision: https://phab.mercurial-scm.org/D12292
Mon, 21 Feb 2022 10:26:25 -0700 formatter: remove conditional assert
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:26:25 -0700] rev 48979
formatter: remove conditional assert We always run on Python 3 now. Differential Revision: https://phab.mercurial-scm.org/D12291
Mon, 21 Feb 2022 10:25:53 -0700 httppeer: inline simplified _reqdata()
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:25:53 -0700] rev 48978
httppeer: inline simplified _reqdata() The function can be reduced to an attribute lookup on Python 3. So inline it. Differential Revision: https://phab.mercurial-scm.org/D12290
Mon, 21 Feb 2022 10:23:54 -0700 url: remove passing of strict
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:23:54 -0700] rev 48977
url: remove passing of strict This was needed to support Python 2.7. Differential Revision: https://phab.mercurial-scm.org/D12289
Thu, 03 Mar 2022 08:04:33 -0800 posix: delete Python 2 posixfile()
Gregory Szorc <gregory.szorc@gmail.com> [Thu, 03 Mar 2022 08:04:33 -0800] rev 48976
posix: delete Python 2 posixfile() The comment no longer makes sense since the stdlib open() behaves the way we want on Python 3. So it was removed. Differential Revision: https://phab.mercurial-scm.org/D12288
Mon, 21 Feb 2022 10:21:18 -0700 match: delete Python 2 conditional code
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:21:18 -0700] rev 48975
match: delete Python 2 conditional code Differential Revision: https://phab.mercurial-scm.org/D12287
Mon, 21 Feb 2022 10:20:48 -0700 mail: delete conditional code for Python 2
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:20:48 -0700] rev 48974
mail: delete conditional code for Python 2 Differential Revision: https://phab.mercurial-scm.org/D12286
Sun, 20 Feb 2022 16:46:05 -0700 archival: remove GzipFileWithTime
Gregory Szorc <gregory.szorc@gmail.com> [Sun, 20 Feb 2022 16:46:05 -0700] rev 48973
archival: remove GzipFileWithTime This was required for Python 2 support, which we no longer need to support. Differential Revision: https://phab.mercurial-scm.org/D12285
Mon, 21 Feb 2022 10:56:31 -0700 check-code: allow importing Python 3 modules
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:56:31 -0700] rev 48972
check-code: allow importing Python 3 modules Now that we no longer support Python 2, we should be able to import and use the Python 3 only modules in our code. So remove a lint banning this. Differential Revision: https://phab.mercurial-scm.org/D12284
Wed, 02 Mar 2022 08:29:52 -0700 tests: move Python 3.5 check higher in file
Gregory Szorc <gregory.szorc@gmail.com> [Wed, 02 Mar 2022 08:29:52 -0700] rev 48971
tests: move Python 3.5 check higher in file Per code review comment on the changeset that introduced the Python 3.5+ checks. Differential Revision: https://phab.mercurial-scm.org/D12259
Sun, 20 Feb 2022 15:35:09 -0700 py2: drop some more from __future__ statements
Gregory Szorc <gregory.szorc@gmail.com> [Sun, 20 Feb 2022 15:35:09 -0700] rev 48970
py2: drop some more from __future__ statements These are no longer needed after dropping support for Python 2. Differential Revision: https://phab.mercurial-scm.org/D12258
Sun, 20 Feb 2022 15:31:33 -0700 tests: delete some no-py3 blocks
Gregory Szorc <gregory.szorc@gmail.com> [Sun, 20 Feb 2022 15:31:33 -0700] rev 48969
tests: delete some no-py3 blocks And drop some nearby avoidable py3 checks in close proximity while we are here. Differential Revision: https://phab.mercurial-scm.org/D12257
Sun, 20 Feb 2022 16:42:58 -0700 tests: remove __future__ import from test-debugcommands.t
Gregory Szorc <gregory.szorc@gmail.com> [Sun, 20 Feb 2022 16:42:58 -0700] rev 48968
tests: remove __future__ import from test-debugcommands.t This one is slightly more involved since it affects test output. Differential Revision: https://phab.mercurial-scm.org/D12256
Sun, 20 Feb 2022 15:28:44 -0700 tests: remove from __future__ from inline Python in tests
Gregory Szorc <gregory.szorc@gmail.com> [Sun, 20 Feb 2022 15:28:44 -0700] rev 48967
tests: remove from __future__ from inline Python in tests This is no longer required since we require Python 3 and the linter no longer requires these statements. Differential Revision: https://phab.mercurial-scm.org/D12255
Thu, 03 Mar 2022 17:34:00 +0100 py2: remove simple from __future__ statements
Gregory Szorc <gregory.szorc@gmail.com> [Thu, 03 Mar 2022 17:34:00 +0100] rev 48966
py2: remove simple from __future__ statements These were needed for Python 2 support. Now that our linter no longer mandates these, we can start deleting them. Differential Revision: https://phab.mercurial-scm.org/D12254
(0) -30000 -10000 -3000 -1000 -300 -100 -50 -28 +28 +50 +100 +300 +1000 tip