~cjwatson/lazr.restful/py3-doctest-encoding

« back to all changes in this revision

Viewing changes to src/lazr/restful/_resource.py

  • Committer: Colin Watson
  • Date: 2019-11-04 17:35:37 UTC
  • Revision ID: cjwatson@canonical.com-20191104173537-to7u1f5wr8hqclwc
Fix ComponentLookupError deprecation warning.

Importing this from zope.component has produced a deprecation warning since
zope.component 4.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
    getUtility,
58
58
    queryMultiAdapter,
59
59
    )
60
 
from zope.component.interfaces import ComponentLookupError
61
60
from zope.event import notify
62
61
from zope.publisher.http import init_status_codes, status_reasons
63
62
from zope.interface import (
68
67
    Interface,
69
68
    )
70
69
from zope.interface.common.sequence import IFiniteSequence
71
 
from zope.interface.interfaces import IInterface
 
70
from zope.interface.interfaces import (
 
71
    ComponentLookupError,
 
72
    IInterface,
 
73
    )
72
74
from zope.location.interfaces import ILocation
73
75
from zope.pagetemplate.pagetemplatefile import PageTemplateFile
74
76
from zope.proxy import isProxy