This is an archive of the discontinued Mercurial Phabricator instance.

notify: be more defensive aboute None values
ClosedPublic

Authored by indygreg on Jan 26 2019, 2:43 PM.

Details

Summary

encoding.strtolocal is the identity function on Python 2
but an actual string manipulation routine on Python 3.

In some cases, we were passing None, which caused Python 3
to barf.

Let's change the code to react properly when the value is
None.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

indygreg created this revision.Jan 26 2019, 2:43 PM
pulkit accepted this revision.Jan 26 2019, 4:32 PM
This revision was automatically updated to reflect the committed changes.