( )⚙ D10203 crecord: convert an instance of bytes to str

This is an archive of the discontinued Mercurial Phabricator instance.

crecord: convert an instance of bytes to str
ClosedPublic

Authored by mharbison72 on Mar 13 2021, 2:33 PM.

Details

Summary

Caught by pytype:

File "/mnt/c/Users/Matt/hg/mercurial/crecord.py", line 1154, in printstring: Function _CursesWindow.addstr was called with the wrong arguments [wrong-arg-types]
         Expected: (self, str: str, ...)
  Actually passed: (self, str: bytes, ...)

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.Mar 13 2021, 2:33 PM
pulkit accepted this revision.Mar 17 2021, 4:59 AM
This revision is now accepted and ready to land.Mar 17 2021, 4:59 AM
This revision was automatically updated to reflect the committed changes.