- Feb 21, 2022
-
-
Gregory Szorc authored
We no longer support Python 2. Differential Revision: https://phab.mercurial-scm.org/D12353
-
Gregory Szorc authored
The inheritance from object is implied in Python 3. So this should be equivalent. This change was generated via an automated search and replace. So there may have been some accidental changes. Differential Revision: https://phab.mercurial-scm.org/D12352
-
Gregory Szorc authored
In Python 3, `class foo:` is equivalent to `class foo(object):`. So we can allow the former form now. Differential Revision: https://phab.mercurial-scm.org/D12351
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12350
-
Gregory Szorc authored
We require Python 3 now. Differential Revision: https://phab.mercurial-scm.org/D12349
-
- Mar 02, 2022
-
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12348
-
- Feb 21, 2022
-
-
Gregory Szorc authored
The Python 3 implementation is a no-op. So this is equivalent. We still keep util.iterfile() around for backwards API compatibility to help the Python 3 migration. It can be deleted in a future release. Differential Revision: https://phab.mercurial-scm.org/D12347
-
- Mar 03, 2022
-
-
Gregory Szorc authored
The workaround for Python 2 is no longer needed. So we can delete some code. Differential Revision: https://phab.mercurial-scm.org/D12346
-
- Feb 21, 2022
-
-
Gregory Szorc authored
Always true since we require Python 3 now. Differential Revision: https://phab.mercurial-scm.org/D12345
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12344
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12343
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12342
-
- Mar 02, 2022
-
-
Gregory Szorc authored
pycompat.itervalues(x) just calls x.values(). So this is equivalent. The rewrite was perfomed via an automated search and replace. Differential Revision: https://phab.mercurial-scm.org/D12341
-
- Feb 21, 2022
-
-
Gregory Szorc authored
pycompat.unicode is an alias to str. Differential Revision: https://phab.mercurial-scm.org/D12340
-
- Mar 08, 2022
-
-
Gregory Szorc authored
pycompat.rawinput() is an alias to input() Differential Revision: https://phab.mercurial-scm.org/D12339
-
- Mar 02, 2022
-
-
Gregory Szorc authored
pycompat.long is aliased to int. So this should have no change in functionality. Differential Revision: https://phab.mercurial-scm.org/D12338
-
- Feb 21, 2022
-
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12336
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12335
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12334
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12333
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12332
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12331
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12330
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12329
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12328
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12327
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12326
-
- Mar 02, 2022
-
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12325
-
- Feb 21, 2022
-
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12324
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12323
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12322
-
- Mar 02, 2022
-
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12321
-
- Feb 21, 2022
-
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12320
-
- Mar 02, 2022
-
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12319
-
- Mar 04, 2022
-
-
Gregory Szorc authored
pycompat.iteritems() just calls .items(). This commit applies a regular expression search and replace to convert simple instances of pycompat.iteritems() with .items(). There are still a handful of calls to pycompat.iteritems() remaining. But these all have more complicated expressions that I wasn't comfortable performing an automated replace on. In addition, some simple replacements were withheld because they broke pytype. These will be handled by their own changesets. Differential Revision: https://phab.mercurial-scm.org/D12318
-
Gregory Szorc authored
pytype is complaining that the argument to `pickle.load()` is not an `IO`. pytype isn't wrong: `_blockingreader` doesn't implement `io.RawIOBase`, only `read()` and `readline()`. But it appears this is enough for pickle. So we silence the false positive. This fixes a regression introduced by D12304 / cc0e059d2af8: worker: remove Python 2 support code. Differential Revision: https://phab.mercurial-scm.org/D12337
-
- Feb 21, 2022
-
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12314
-
Gregory Szorc authored
This entailed deleting a function for Python 2 support and renaming the Python 3 function to match the exported symbol name. Differential Revision: https://phab.mercurial-scm.org/D12313
-
- Mar 02, 2022
-
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12312
-
- Feb 21, 2022
-
-
Gregory Szorc authored
Differential Revision: https://phab.mercurial-scm.org/D12311
-