This is an archive of the discontinued Mercurial Phabricator instance.

py3: stop injecting pycompat.hasattr into modules
ClosedPublic

Authored by indygreg on Oct 6 2019, 5:23 PM.

Details

Summary

I only found a single user of this pattern, probably because we
use util.hasattr everywhere.

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

indygreg created this revision.Oct 6 2019, 5:23 PM
martinvonz added inline comments.
mercurial/statprof.py
171

Should we switch to util.safehasattr() for consistency?

I'd actually rather not - safehasattr is not required on py3.

This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.