| Index: mojo/public/tools/bindings/pylib/mojom/generate/module.py
|
| diff --git a/mojo/public/tools/bindings/pylib/mojom/generate/module.py b/mojo/public/tools/bindings/pylib/mojom/generate/module.py
|
| index b0dbb1d6de1b3c7533a9d2d7f2cb2cee5db1de4a..8e52924f27d22cd2615559c29542691301384950 100644
|
| --- a/mojo/public/tools/bindings/pylib/mojom/generate/module.py
|
| +++ b/mojo/public/tools/bindings/pylib/mojom/generate/module.py
|
| @@ -277,6 +277,9 @@ class InterfaceRequest(ReferenceKind):
|
|
|
| def __init__(self, kind=None):
|
| if kind is not None:
|
| + if not isinstance(kind, Interface):
|
| + raise Exception(
|
| + "Interface request requires %r to be an interface." % kind.spec)
|
| ReferenceKind.__init__(self, 'r:' + kind.spec)
|
| else:
|
| ReferenceKind.__init__(self)
|
|
|