This is an archive of the discontinued Mercurial Phabricator instance.

tags: don't feed both int and None to min()
ClosedPublic

Authored by durin42 on Feb 18 2018, 12:36 AM.

Details

Summary

They're not comparable on Python 3, and we can just map None to 0.

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

durin42 created this revision.Feb 18 2018, 12:36 AM
pulkit accepted this revision.Feb 18 2018, 6:50 AM
This revision was automatically updated to reflect the committed changes.