Ticket #1272: interfaces_1272_2.diff

File interfaces_1272_2.diff, 0.8 KB (added by therve, 3 years ago)
  • twisted/internet/interfaces.py

     
    750750        """ 
    751751 
    752752 
    753 class IFileDescriptor(Interface): 
    754     """A file descriptor. 
     753class ILoggingContext(Interface): 
    755754    """ 
     755    Give context information that will be used to log events generated by 
     756    this item. 
     757    """ 
     758    def logPrefix(): 
     759        """ 
     760        @return: Prefix used during log formatting to indicate context. 
     761        @rtype: C{str} 
     762        """ 
    756763 
     764 
     765class IFileDescriptor(ILoggingContext): 
     766    """ 
     767    A file descriptor. 
     768    """ 
     769 
    757770    def fileno(): 
    758771        """ 
    759772        @return: The platform-specified representation of a file-descriptor