This is an archive of the discontinued Mercurial Phabricator instance.

hgweb: use importlib.reload() if available
ClosedPublic

Authored by indygreg on Oct 5 2019, 5:58 PM.

Details

Summary

reload() was nuked in Python 3. We need to use importlib.reload()
instead.

But pyflakes isn't smart enough to detect our conditional usage, so
we allow this error.

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

indygreg created this revision.Oct 5 2019, 5:58 PM
indygreg set the repository for this revision to rHG Mercurial.Oct 6 2019, 10:39 AM
pulkit accepted this revision.Oct 6 2019, 10:40 AM
This revision is now accepted and ready to land.Oct 6 2019, 10:40 AM
This revision was automatically updated to reflect the committed changes.