Ticket #8018: [PATCH] Update _pollingfile.py for zope.interface python3.patch

File [PATCH] Update _pollingfile.py for zope.interface python3.patch, 1.2 KB (added by Doadin, 4 years ago)
  • twisted/internet/_pollingfile.py

    From 56e23a9524fa26f520fdf44dceb98ce036dfe7a6 Mon Sep 17 00:00:00 2001
    From: doadin <tbkizle@gmail.com>
    Date: Tue, 8 Sep 2015 03:28:52 -0400
    Subject: [PATCH] Update _pollingfile.py for zope.interface python3
     compatibility
    
    ---
     twisted/internet/_pollingfile.py | 6 +++---
     1 file changed, 3 insertions(+), 3 deletions(-)
    
    diff --git a/twisted/internet/_pollingfile.py b/twisted/internet/_pollingfile.py
    index ff6481a..e2e064d 100644
    a b  
    77select() - this is pretty much only useful on Windows.
    88"""
    99
    10 from zope.interface import implements
     10from zope.interface import implementer
    1111
    1212from twisted.internet.interfaces import IConsumer, IPushProducer
    1313
    def _pollEvent(self): 
    105105
    106106class _PollableReadPipe(_PollableResource):
    107107
    108     implements(IPushProducer)
     108    implementer(IPushProducer)
    109109
    110110    def __init__(self, pipe, receivedCallback, lostCallback):
    111111        # security attributes for pipes
    def resumeProducing(self): 
    161161
    162162class _PollableWritePipe(_PollableResource):
    163163
    164     implements(IConsumer)
     164    implementer(IConsumer)
    165165
    166166    def __init__(self, writePipe, lostCallback):
    167167        self.disconnecting = False