This is an archive of the discontinued Mercurial Phabricator instance.

check-code: remove ban on old-style classes
ClosedPublic

Authored by indygreg on Mar 3 2022, 10:31 PM.

Details

Summary

In Python 3, class foo: is equivalent to class foo(object):. So
we can allow the former form now.

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.Mar 3 2022, 10:31 PM
Alphare accepted this revision.Mar 8 2022, 4:47 AM
This revision is now accepted and ready to land.Mar 8 2022, 4:47 AM
This revision was automatically updated to reflect the committed changes.