Package buildbot :: Package util :: Module netstrings :: Class NullTransport
[frames] | no frames]

Class NullTransport

source code

object --+

a do-nothing transport to make NetstringReceiver happy

Instance Methods
write(self, data) source code
writeSequence(self, data) source code
loseConnection(self) source code
getPeer(self) source code
getHost(self) source code
Object Specification Descriptor
source code
Special descriptor for class __provides__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  __implemented__ = <implementedBy buildbot.util.netstrings.Null...

Inherited from object: __class__

Method Details


Special descriptor for class __provides__

The descriptor caches the implementedBy info, so that
we can get declarations for objects without instance-specific
interfaces a bit quicker.

For example:

  >>> from zope.interface import Interface
  >>> class IFooFactory(Interface):
  ...     pass
  >>> class IFoo(Interface):
  ...     pass
  >>> class C(object):
  ...     implements(IFoo)
  ...     classProvides(IFooFactory)
  >>> [i.getName() for i in C.__provides__]

  >>> [i.getName() for i in C().__provides__]

Class Variable Details


<implementedBy buildbot.util.netstrings.NullTransport>