~ubuntu-branches/ubuntu/trusty/twisted/trusty-proposed

« back to all changes in this revision

Viewing changes to twisted/protocols/memcache.py

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-01-08 00:19:41 UTC
  • mfrom: (1.3.1) (44.2.2 sid)
  • Revision ID: package-import@ubuntu.com-20140108001941-kxhzbyi4a40sc08r
Tags: 13.2.0-1ubuntu1
* Merge with Debian; remaining changes:
  - Keep the preliminary python3 support, but don't enable it.
  - Try to use plain pygtkcompat and fall back to gi.pygtkcompat, to
    avoid a DeprecationWarning, and a crash.
  - Use new io_add_watch api on new versions of pygobject.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
more information about the protocol.
26
26
"""
27
27
 
28
 
try:
29
 
    from collections import deque
30
 
except ImportError:
31
 
    class deque(list):
32
 
        def popleft(self):
33
 
            return self.pop(0)
34
 
 
 
28
from collections import deque
35
29
 
36
30
from twisted.protocols.basic import LineReceiver
37
31
from twisted.protocols.policies import TimeoutMixin