( )⚙ D11918 pytype: stop excluding stringutil.py

This is an archive of the discontinued Mercurial Phabricator instance.

pytype: stop excluding stringutil.py
ClosedPublic

Authored by mharbison72 on Dec 14 2021, 4:10 PM.

Details

Summary

This fixes the following:

File "/mnt/c/Users/Matt/hg/mercurial/utils/stringutil.py", line 267, in prettyrepr:
    Function bytes.startswith expects 2 arg(s), got 3 [wrong-arg-count]
         Expected: (self, prefix)
  Actually passed: (self, prefix, _)
File "/mnt/c/Users/Matt/hg/mercurial/utils/stringutil.py", line 695, in escapestr:
    No attribute 'escape_encode' on module 'codecs' [module-attr]
File "/mnt/c/Users/Matt/hg/mercurial/utils/stringutil.py", line 699, in unescapestr:
    No attribute 'escape_decode' on module 'codecs' [module-attr]

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

mharbison72 created this revision.Dec 14 2021, 4:10 PM
Alphare accepted this revision.Dec 15 2021, 5:23 AM
This revision is now accepted and ready to land.Dec 15 2021, 5:23 AM
This revision was automatically updated to reflect the committed changes.