- Feb 20, 2022
-
-
Gregory Szorc authored
I simply did a search for `^.* \(no-py3 !\)\n` and removed all matched lines. There are still some references to no-py3. But these were the simpler ones to match against. Differential Revision: https://phab.mercurial-scm.org/D12253
-
Gregory Szorc authored
Previously, pycompat.bytesio and pycompat.stringio referred to io.BytesIO. And util.bytesio and util.stringio aliased the pycompat symbols. This commit switches everything to use io.BytesIO directly. util.bytesio and util.stringio still exist to provide backwards compatibility, as they were the preferred symbols. Differential Revision: https://phab.mercurial-scm.org/D12252
-
Gregory Szorc authored
We no longer support Python 2 so we can drop support for linting code for Python 2 support. This gets rid of the check for `from __future__`, enabling us to delete those imports. Differential Revision: https://phab.mercurial-scm.org/D12251
-
- Mar 03, 2022
-
-
Gregory Szorc authored
We no longer support Python 2. So we can delete its compatibility code and remove the conditional and dedent the Python 3 code. In order to make the linter happy, we had to inline imports in the stanza at the top of the file. Differential Revision: https://phab.mercurial-scm.org/D12250
-
- Mar 02, 2022
-
-
Gregory Szorc authored
pycompat.pickle abstracted over the different pickle modules in Python 2 and 3. Now that we're Python 3 only, it is safe to use the `pickle` module directly. So this commit does that. As part of this we remove the rules from check-code.py that were forbidden direct pickle module use. We retain the `util.pickle` symbol for backwards compatibility, just in case some extensions were using it. Differential Revision: https://phab.mercurial-scm.org/D12249
-
- Mar 03, 2022
-
-
Gregory Szorc authored
We now require Python 3. So we can remove the first block supporting Python 2. Differential Revision: https://phab.mercurial-scm.org/D12247
-
- Feb 20, 2022
-
-
Gregory Szorc authored
Since we require Python 3 now, we can assume we always use absolute imports and the modern import checker should be used. Differential Revision: https://phab.mercurial-scm.org/D12246
-
Gregory Szorc authored
Now that we require Python 3 we can simplify these imports. Differential Revision: https://phab.mercurial-scm.org/D12245
-
Gregory Szorc authored
This removes the last references to PYTHON3. Differential Revision: https://phab.mercurial-scm.org/D12244
-
Gregory Szorc authored
PYTHON3 is always True. So this flow can be reduced. Differential Revision: https://phab.mercurial-scm.org/D12243
-
Gregory Szorc authored
These can never be used anymore. Differential Revision: https://phab.mercurial-scm.org/D12242
-
Gregory Szorc authored
As part of requiring Python 3. Differential Revision: https://phab.mercurial-scm.org/D12241
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12240
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12239
-
Gregory Szorc authored
We could probably just do bytes([x]) everywhere. But this eliminates use of PYTHON3. Differential Revision: https://phab.mercurial-scm.org/D12238
-
Gregory Szorc authored
Now that we're Python 3 only we can make this logic simpler. Differential Revision: https://phab.mercurial-scm.org/D12237
-
Gregory Szorc authored
PYTHON3 is always True now so this logic should be identical as to before. Differential Revision: https://phab.mercurial-scm.org/D12236
-
Gregory Szorc authored
This doesn't account for all of the references to PYTHON3. But it accounts for the ones that are more trivial and don't entail logical changes. Differential Revision: https://phab.mercurial-scm.org/D12235
-
Gregory Szorc authored
We change the version check logic to hard fail if running on <= 3.5.0. The branch for <3.5 has been deleted. And the >=3.5 branch block has been dedented. Differential Revision: https://phab.mercurial-scm.org/D12234
-
- Feb 21, 2022
-
-
Euxane TRAN-GIRARD authored
Differential Revision: https://phab.mercurial-scm.org/D12212
-
Euxane TRAN-GIRARD authored
Differential Revision: https://phab.mercurial-scm.org/D12211
-
Euxane TRAN-GIRARD authored
Differential Revision: https://phab.mercurial-scm.org/D12210
-
Euxane TRAN-GIRARD authored
This will be useful in particular to avoid going through the Python interpreter in native Rust functions. Differential Revision: https://phab.mercurial-scm.org/D12209
-
Euxane TRAN-GIRARD authored
By convention, the rank of the null revision is 0. This particular revision is never "physically" stored in the changelog, so it is a special case. For consistency, the value `None` is still being returned for revlogs which do not store the fast_rank property for any revision. Differential Revision: https://phab.mercurial-scm.org/D12208
-
- Mar 03, 2022
-
-
Gregory Szorc authored
We talked about this on the mailing list [1] and there seemed to be agreement that Python 3.5 is effectively dead and no longer worth supporting. So this commit changes our minimum version requirement to 3.6.2. [1] https://www.mercurial-scm.org/pipermail/mercurial-devel/2022-February/147885.html Differential Revision: https://phab.mercurial-scm.org/D12315
-
- Feb 20, 2022
-
-
Gregory Szorc authored
We just deleted support for Python 2 from the packaging code. We no longer need these package constraints in the requirements file to support Python 2. Differential Revision: https://phab.mercurial-scm.org/D12267
-
Gregory Szorc authored
This commit started by deleting references to py2exe (which is only used on Python 2). After pulling the thread, quite a lot of code was orphaned and was deleted. Differential Revision: https://phab.mercurial-scm.org/D12265
-
Gregory Szorc authored
The building of Inno and WiX installers took a python_version argument that allowed us to specify "2" or "3" for the major Python version. Since we no longer support Python 2, we can delete this argument and everything feeding into it. Differential Revision: https://phab.mercurial-scm.org/D12264
-
Gregory Szorc authored
We stop installing Python 2.7 in the Windows environment. We remove support for building Python 2.7 wheels and installers. There is still some Python 2.7 support cleanup to perform in automation. But this removes the biggest remaining chunk of references to 2.7. Differential Revision: https://phab.mercurial-scm.org/D12263
-
Gregory Szorc authored
We stop installing Python 2.7 via pyenv. We stop installing the system Python 2 packages. We delete support for running tests on Python 2.7. Differential Revision: https://phab.mercurial-scm.org/D12262
-
Gregory Szorc authored
We'll soon drop support for Python 2.7. Let's use Python 3 by default. Differential Revision: https://phab.mercurial-scm.org/D12261
-
Gregory Szorc authored
Python 2.7 support will go away soon. Let's use Python 3 as part of the automation. Differential Revision: https://phab.mercurial-scm.org/D12260
-
- Mar 03, 2022
-
-
Simon Sapin authored
Note: `cpython/python3-sys` is a default feature. Differential Revision: https://phab.mercurial-scm.org/D12316
-
Yuya Nishihara authored
Disclaimer: This is _WIN32 code and I have no machine to test.
-
Yuya Nishihara authored
It's if"n"def.
-
- Mar 02, 2022
-
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D12283
-
Augie Fackler authored
Not decoding was a Python 2 thing. Differential Revision: https://phab.mercurial-scm.org/D12282
-
Augie Fackler authored
Differential Revision: https://phab.mercurial-scm.org/D12281
-
Augie Fackler authored
We no longer support Python 2. Differential Revision: https://phab.mercurial-scm.org/D12280
-
Augie Fackler authored
Python 2 is gone. Differential Revision: https://phab.mercurial-scm.org/D12279
-