( )⚙ D10293 blackbox: fix type error on log rotation on read-only filesystem

This is an archive of the discontinued Mercurial Phabricator instance.

blackbox: fix type error on log rotation on read-only filesystem
ClosedPublic

Authored by valentin.gatienbaron on Mar 31 2021, 6:11 PM.

Details

Summary

Grepping around, the code uses either encoding.strtolocal or
stringutil.forcebytestr in this situation. No idea which is best.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

@mharbison72 these should have been caught by pytype IIUC.

Alphare accepted this revision.Apr 1 2021, 8:52 AM
Alphare added a subscriber: Alphare.

strtolocal sounds like the right pick.

pulkit accepted this revision.Apr 11 2021, 5:24 PM
This revision is now accepted and ready to land.Apr 11 2021, 5:24 PM