This is an archive of the discontinued Mercurial Phabricator instance.

py3: workaround comparing NoneType and integers
ClosedPublic

Authored by pulkit on Apr 10 2018, 10:15 AM.

Details

Summary

Comparing None with integers was fine in Python 2 but returns error in Python 3
which is nice. This patch replaces None with -1 where sorting is done and some
related logic.

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

pulkit created this revision.Apr 10 2018, 10:15 AM
This revision was automatically updated to reflect the committed changes.