Created
August 5, 2012 10:11
-
-
Save lvh/3263629 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from twisted.protocols import amp | |
class NestedAMPBox(amp.AmpList): | |
def fromStringProto(self, inString, proto): | |
value, = amp.AmpList.fromStringProto(self, inString, proto) | |
return value | |
def toStringProto(self, inObject, proto): | |
return amp.AmpList.toStringProto(self, [inObject], proto) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment