This patch makes indexapi use zope.interface which is now vendored with
mercurial.
Details
Details
- Reviewers
indygreg - Group Reviewers
hg-reviewers
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Event Timeline
Comment Actions
Please also add test coverage to test-check-interfaces.py, otherwise these interfaces mean practically nothing. zope.interface doesn't perform run-time interface conformance tests unless you explicitly instruct it to. For now, we're going to verify interfaces in test-check-interfaces.py.
hgext/infinitepush/indexapi.py | ||
---|---|---|
25 | Interface classes don't define self on methods. So please drop self from all these methods. |
Comment Actions
Oh, when you add test coverage, watch out for mysql.connector being unavailable. You may want to register a fake module in sys.modules['mysql.connector'] to ensure it always is available.
Interface classes don't define self on methods. So please drop self from all these methods.