mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
found_terminator(): Add a debug print showing the data.
This commit is contained in:
parent
3a28ca8fb8
commit
406d46e185
1 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
#! /usr/bin/env python
|
||||
"""An RFC 821 smtp proxy.
|
||||
"""An RFC 2821 smtp proxy.
|
||||
|
||||
Usage: %(program)s [options] localhost:port remotehost:port
|
||||
|
||||
|
|
@ -133,6 +133,7 @@ def collect_incoming_data(self, data):
|
|||
# Implementation of base class abstract method
|
||||
def found_terminator(self):
|
||||
line = EMPTYSTRING.join(self.__line)
|
||||
print >> DEBUGSTREAM, 'Data:', repr(line)
|
||||
self.__line = []
|
||||
if self.__state == self.COMMAND:
|
||||
if not line:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue