Skip to content
Snippets Groups Projects
  1. Mar 04, 2022
    • Gregory Szorc's avatar
      global: bulk replace simple pycompat.iteritems(x) with x.items() · f254fc73
      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
      f254fc73
    • Gregory Szorc's avatar
      worker: silence type error when calling pickle · a0674e91
      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
      a0674e91
  2. Feb 21, 2022
  3. Mar 02, 2022
  4. Feb 21, 2022
  5. Mar 03, 2022
  6. Feb 21, 2022
  7. Mar 03, 2022
  8. Feb 21, 2022
  9. Mar 03, 2022
  10. Feb 21, 2022
  11. Feb 20, 2022
  12. Feb 21, 2022
  13. Mar 02, 2022
  14. Feb 20, 2022
  15. Mar 03, 2022
  16. Feb 20, 2022
Loading