rendered paste body def lineReceived(self, line):# print 'C: ' + repr(line) if self.timeout > 0: self.resetTimeout() lastPart = line.rfind(' ') if lastPart != -1: lastPart = line[lastPart + 1:] if lastPart.endswith('}') and lastPart.rfind('{') != -1: # It's a literal a-comin' in try: octets = int(lastPart[lastPart.rfind('{')+1:-1]) except ValueError: raise IllegalServerResponse(line) if self._parts is None: self._tag, parts = line.split(None, 1) else: parts = line self._setupForLiteral(parts, octets) return