Module ImportFrom alias ImportFrom alias ImportFrom alias Expr Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore ListLoad Str Str Assign NameStore Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr IfExp UnaryOpNot AttributeLoad NameLoad attr Str Str IfExp AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list Assign NameStore Call NameLoad Lambda arguments args NameParam defaults AttributeLoad NameLoad attr Assign NameStore Call NameLoad Lambda arguments args NameParam defaults AttributeLoad NameLoad attr Assign NameStore Call NameLoad Lambda arguments args NameParam defaults AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIn NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body While UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad AugAssignAdd AttributeStore NameLoad attr NameLoad If CompareGtE AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body If CompareGtE AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr UnaryOpNot NameLoad AugAssignAdd AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr Num If CompareGtE AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str TryExcept body While AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body If CompareEq NameLoad NameLoad body Continue If CompareEq NameLoad Str body Continue If CompareNotEq NameLoad NameLoad body AugAssignAdd SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad Continue orelse AugAssignAdd AttributeStore NameLoad attr NameLoad orelse If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body If CompareIn NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad body AugAssignAdd AttributeStore NameLoad attr NameLoad Continue Assign AttributeStore NameLoad attr Str If CompareEq NameLoad NameLoad body AugAssignAdd SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad NameLoad body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Str orelse If CompareEq NameLoad NameLoad body Assign AttributeStore NameLoad attr Num AugAssignAdd AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index Num Str Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad orelse If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign AttributeStore NameLoad attr Str If CompareIn NameLoad TupleLoad NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad handlers ExceptHandler type NameLoad body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Num AugAssignAdd AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num AugAssignAdd AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr ListComp Call NameLoad NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq NameLoad NameLoad body If CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad NameLoad NameLoad orelse If CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad NameLoad NameLoad orelse If CompareEq NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad NameLoad Str NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad NameLoad NameLoad orelse If CompareEq NameLoad NameLoad body If CompareEq NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse If CompareEq NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse If CompareEq NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad NameLoad NameLoad orelse If CompareEq NameLoad NameLoad body If CompareIn NameLoad TupleLoad NameLoad NameLoad body Raise Call NameLoad Str orelse Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad NameLoad NameLoad orelse If CompareEq NameLoad NameLoad body If CompareIn NameLoad TupleLoad NameLoad NameLoad body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str If CompareNotEq Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return If CompareEq SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num If CompareEq NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num orelse If CompareEq NameLoad NameLoad body Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num orelse If CompareEq NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str orelse If CompareEq NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad For NameStore Call NameLoad Num Num body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Pass Expr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Str Str Str Str Str Str Str NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad While NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Num If CompareEq NameLoad NameLoad body Break Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad Str attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd Str Call NameLoad Num Return Call NameLoad Str Num decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr BinOpBitAnd NameLoad Num Assign AttributeStore NameLoad attr BinOpBitAnd NameLoad Num Assign AttributeStore NameLoad attr BinOpBitAnd NameLoad Num Assign AttributeStore NameLoad attr BinOpBitAnd NameLoad Num Assign AttributeStore NameLoad attr BinOpBitAnd NameLoad Num Assign AttributeStore NameLoad attr BinOpBitAnd NameLoad Num Assign AttributeStore NameLoad attr BinOpBitAnd NameLoad Num Assign AttributeStore NameLoad attr BinOpBitAnd NameLoad Num decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad BinOpBitAnd NameLoad Num Assign AttributeStore NameLoad attr Call NameLoad BinOpBitAnd NameLoad Num Assign AttributeStore NameLoad attr Call NameLoad BinOpBitAnd NameLoad Num Assign AttributeStore NameLoad attr Call NameLoad BinOpBitAnd NameLoad Num Assign AttributeStore NameLoad attr Call NameLoad BinOpBitAnd NameLoad Num Assign AttributeStore NameLoad attr Call NameLoad BinOpBitAnd NameLoad Num Assign AttributeStore NameLoad attr Call NameLoad BinOpBitAnd NameLoad Num Assign AttributeStore NameLoad attr Call NameLoad BinOpBitAnd NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Return Call NameLoad NameLoad NameLoad NameLoad decorator_list If CompareEq NameLoad Str body ImportFrom alias ImportFrom alias Expr Call AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Num Assign NameStore Str Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad Str AttributeLoad NameLoad attr Expr Call NameLoad Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr
N/A __future__ absolute_import __future__ print_function __future__ division N/A TELNET client module.

Forked from telnetlib and modified to better fit into Pycopia framework, such
as having an API that works with an Expect object, and common logging.

These days telnet is mainly used for serial console server access. So this code
adds some features for that purpose. It adds some RFC 2217 features for serial
port control and monitoring.

This module also supports in-band file uploads by use of the ZMODEM protocol.
This requires the software package named "lrzsz" to be installed on both ends.
 N/A sys N/A os N/A struct pycopia logging pycopia socket pycopia.OS.exitstatus ExitStatus N/A __all__ N/A Telnet get_telnet N/A TELNET_PORT 23 N/A IAC N/A chr 255 N/A DONT N/A chr 254 N/A DO N/A chr 253 N/A WONT N/A chr 252 N/A WILL N/A chr 251 N/A SB N/A chr 250 N/A GA N/A chr 249 N/A EL N/A chr 248 N/A EC N/A chr 247 N/A AYT N/A chr 246 N/A AO N/A chr 245 N/A IP N/A chr 244 N/A BREAK N/A chr 243 N/A DM N/A chr 242 N/A NOP N/A chr 241 N/A SE N/A chr 240 N/A IAC2 N/A IAC IAC N/A NULL N/A chr 0 N/A BELL N/A chr 7 N/A BS N/A chr 8 N/A HT N/A chr 9 N/A LF N/A chr 10 N/A VT N/A chr 11 N/A FF N/A chr 12 N/A CR N/A chr 13 N/A CRLF N/A CR LF N/A CRNULL N/A CR NULL N/A BINARY N/A chr 0 N/A ECHO N/A chr 1 N/A RCP N/A chr 2 N/A SGA N/A chr 3 N/A NAMS N/A chr 4 N/A STATUS N/A chr 5 N/A TM N/A chr 6 N/A RCTE N/A chr 7 N/A NAOL N/A chr 8 N/A NAOP N/A chr 9 N/A NAOCRD N/A chr 10 N/A NAOHTS N/A chr 11 N/A NAOHTD N/A chr 12 N/A NAOFFD N/A chr 13 N/A NAOVTS N/A chr 14 N/A NAOVTD N/A chr 15 N/A NAOLFD N/A chr 16 N/A XASCII N/A chr 17 N/A LOGOUT N/A chr 18 N/A BM N/A chr 19 N/A DET N/A chr 20 N/A SUPDUP N/A chr 21 N/A SUPDUPOUTPUT N/A chr 22 N/A SNDLOC N/A chr 23 N/A TTYPE N/A chr 24 N/A EOR N/A chr 25 N/A TUID N/A chr 26 N/A OUTMRK N/A chr 27 N/A TTYLOC N/A chr 28 N/A VT3270REGIME N/A chr 29 N/A X3PAD N/A chr 30 N/A NAWS N/A chr 31 N/A TSPEED N/A chr 32 N/A LFLOW N/A chr 33 N/A LINEMODE N/A chr 34 N/A XDISPLOC N/A chr 35 N/A OLD_ENVIRON N/A chr 36 N/A AUTHENTICATION N/A chr 37 N/A ENCRYPT N/A chr 38 N/A NEW_ENVIRON N/A chr 39 N/A TN3270E N/A chr 40 N/A XAUTH N/A chr 41 N/A CHARSET N/A chr 42 N/A RSP N/A chr 43 N/A COM_PORT_OPTION N/A chr 44 N/A SUPPRESS_LOCAL_ECHO N/A chr 45 N/A TLS N/A chr 46 N/A KERMIT N/A chr 47 N/A SEND_URL N/A chr 48 N/A FORWARD_X N/A chr 49 N/A PRAGMA_LOGON N/A chr 138 N/A SSPI_LOGON N/A chr 139 N/A PRAGMA_HEARTBEAT N/A chr 140 N/A EXOPL N/A chr 255 N/A NOOPT N/A chr 0 N/A SET_BAUDRATE N/A chr 1 N/A SET_DATASIZE N/A chr 2 N/A SET_PARITY N/A chr 3 N/A SET_STOPSIZE N/A chr 4 N/A SET_CONTROL N/A chr 5 N/A NOTIFY_LINESTATE N/A chr 6 N/A NOTIFY_MODEMSTATE N/A chr 7 N/A FLOWCONTROL_SUSPEND N/A chr 8 N/A FLOWCONTROL_RESUME N/A chr 9 N/A SET_LINESTATE_MASK N/A chr 10 N/A SET_MODEMSTATE_MASK N/A chr 11 N/A PURGE_DATA N/A chr 12 N/A RESP_SET_BAUDRATE N/A chr 101 N/A RESP_SET_DATASIZE N/A chr 102 N/A RESP_SET_PARITY N/A chr 103 N/A RESP_SET_STOPSIZE N/A chr 104 N/A RESP_SET_CONTROL N/A chr 105 N/A RESP_NOTIFY_LINESTATE N/A chr 106 N/A RESP_NOTIFY_MODEMSTATE N/A chr 107 N/A RESP_FLOWCONTROL_SUSPEND N/A chr 108 N/A RESP_FLOWCONTROL_RESUME N/A chr 109 N/A RESP_SET_LINESTATE_MASK N/A chr 110 N/A RESP_SET_MODEMSTATE_MASK N/A chr 111 N/A RESP_PURGE_DATA N/A chr 112 TelnetError N/A Exception N/A N/A N/A BadConnectionError N/A TelnetError N/A N/A N/A Telnet N/A object N/A __init__ N/A N/A self host port logfile N/A None TELNET_PORT None N/A N/A A telnet connection.
         N/A N/A self _logfile logfile N/A N/A N/A self reset N/A host N/A N/A N/A N/A self open host port N/A __enter__ N/A N/A self N/A N/A N/A self N/A __exit__ N/A N/A self extype exvalue traceback N/A N/A N/A N/A N/A self close N/A False N/A __str__ N/A N/A self N/A N/A N/A N/A N/A Telnet({!r:s}, {:d}): {} ({}) format N/A self host N/A self port N/A N/A N/A self eof open closed N/A N/A self _binary binary nonbinary N/A open N/A N/A self host port N/A TELNET_PORT N/A N/A Open a conneciton to a host.
         N/A N/A N/A self sock N/A N/A N/A self host N/A str host N/A N/A self port N/A int port N/A N/A self sock N/A N/A socket connect_tcp N/A self host N/A self port N/A socket socket N/A N/A N/A self _sendall N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A IAC DO BINARY IAC DO SGA IAC DONT ECHO IAC WILL COM_PORT_OPTION N/A N/A N/A self _fill_rawq 12 N/A N/A N/A self _process_rawq N/A N/A self _closed 0 N/A N/A self eof 0 N/A set_logfile N/A N/A self lf N/A N/A N/A N/A self _logfile lf N/A fileno N/A N/A self N/A N/A N/A Return the fileno() of the socket object used internally. N/A N/A N/A N/A self sock fileno N/A close N/A N/A self N/A N/A N/A N/A self sock N/A N/A N/A N/A N/A self sock close N/A N/A N/A self reset N/A N/A self eof 1 N/A reset N/A N/A self N/A N/A N/A N/A self sock None N/A N/A self eof 0 N/A N/A self _closed 1 N/A N/A self _rawq N/A N/A self _q N/A N/A self _qi 0 N/A N/A self _irawq 0 N/A N/A self iacseq N/A N/A self sb 0 N/A N/A self sbdataq N/A N/A self _binary False N/A N/A self _sga False N/A N/A self _do_com False N/A N/A self _linestate None N/A N/A self _modemstate None N/A N/A self _suspended False N/A N/A linestate N/A property N/A N/A N/A self N/A N/A self _linestate N/A modemstate N/A property N/A N/A N/A self N/A N/A self _modemstate N/A closed N/A property N/A N/A N/A self N/A N/A self _closed write N/A N/A self text N/A N/A N/A Write a string to the socket, doubling any IAC characters.

        Can block if the connection is blocked.  May raise
        socket.error if the connection is closed.
         N/A N/A IAC text N/A N/A text N/A N/A text replace IAC IAC2 N/A N/A self _logfile N/A N/A N/A N/A N/A self _logfile write N/A N/A    ->: {!r}
 format text N/A N/A N/A N/A self sock sendall text N/A read N/A N/A self amt N/A N/A N/A N/A N/A self _q N/A N/A N/A N/A self _fill_rawq N/A N/A N/A self _process_rawq N/A d N/A N/A self _q N/A N/A self _qi N/A N/A self _qi amt N/A N/A self _qi amt N/A N/A N/A self _qi N/A len N/A self _q N/A N/A N/A self _q N/A N/A self _qi 0 N/A d N/A _fill_rawq N/A N/A self n N/A 256 N/A N/A N/A N/A self _irawq N/A len N/A self _rawq N/A N/A N/A self _rawq N/A N/A self _irawq 0 N/A buf N/A N/A N/A self sock recv n N/A N/A self _logfile N/A N/A N/A N/A N/A self _logfile write N/A N/A <-{0:003d}: {1!r:s}
 format N/A len buf buf N/A N/A self eof N/A buf N/A N/A self _rawq buf N/A _rawq_getchar N/A N/A self N/A N/A N/A N/A N/A self _rawq N/A N/A N/A N/A self _fill_rawq N/A N/A self eof N/A N/A N/A EOFError No data received N/A c N/A N/A self _rawq N/A N/A self _irawq N/A N/A self _irawq 1 N/A N/A N/A self _irawq N/A len N/A self _rawq N/A N/A N/A self _rawq N/A N/A self _irawq 0 N/A c N/A _process_rawq N/A N/A self N/A N/A N/A buf N/A N/A N/A N/A N/A self _rawq N/A N/A c N/A N/A self _rawq_getchar N/A N/A N/A self iacseq N/A N/A N/A c NULL N/A N/A N/A N/A c N/A N/A N/A N/A c IAC N/A N/A N/A buf N/A N/A self sb c N/A N/A N/A N/A self iacseq c N/A N/A N/A N/A len N/A self iacseq 1 N/A N/A N/A c N/A DO DONT WILL WONT N/A N/A N/A self iacseq c N/A N/A N/A self iacseq N/A N/A c IAC N/A N/A N/A buf N/A N/A self sb c N/A N/A N/A c SB N/A N/A N/A self sb 1 N/A N/A self sbdataq N/A N/A N/A c SE N/A N/A N/A self sb 0 N/A N/A self sbdataq N/A buf N/A 1 N/A N/A buf N/A 1 N/A N/A N/A self _suboption N/A N/A N/A N/A logging warning N/A N/A Telnet: IAC {!r} not recognized format c N/A N/A N/A N/A len N/A self iacseq 2 N/A N/A cmd N/A N/A self iacseq N/A 1 N/A N/A self iacseq N/A N/A cmd N/A DO DONT WILL WONT N/A N/A N/A N/A self _neg_option cmd c N/A N/A N/A N/A logging error N/A N/A telnet bad command: {!r} format cmd N/A N/A N/A EOFError N/A N/A N/A self iacseq N/A N/A self sb 0 N/A N/A self _q N/A buf N/A 0 N/A N/A self sbdataq N/A buf N/A 1 N/A _sendall N/A N/A self data opt N/A 0 N/A N/A N/A self _logfile N/A N/A N/A N/A N/A self _logfile write N/A N/A cmd->: {!r}
 format N/A N/A ord c N/A c data N/A N/A N/A N/A self sock sendall data opt N/A _neg_option N/A N/A self cmd opt N/A N/A N/A N/A cmd DO N/A N/A N/A opt BINARY N/A N/A N/A N/A self _sendall N/A N/A IAC WILL BINARY N/A N/A N/A opt SGA N/A N/A N/A N/A self _sendall N/A N/A IAC WILL SGA N/A N/A N/A opt COM_PORT_OPTION N/A N/A N/A self _do_com True N/A N/A N/A self _sendall N/A N/A N/A N/A N/A N/A IAC SB COM_PORT_OPTION SET_MODEMSTATE_MASK IAC SE N/A N/A N/A N/A self _sendall N/A N/A IAC WONT opt N/A N/A N/A cmd WILL N/A N/A N/A opt BINARY N/A N/A N/A self _binary True N/A N/A N/A opt SGA N/A N/A N/A self _sga True N/A N/A N/A opt COM_PORT_OPTION N/A N/A N/A self _do_com True N/A N/A N/A N/A self _sendall N/A N/A IAC DONT opt N/A N/A N/A cmd DONT N/A N/A N/A opt N/A BINARY SGA N/A N/A N/A BadConnectionError Server doesn't want binary connection. N/A N/A N/A N/A self _sendall N/A N/A IAC WONT opt N/A N/A N/A cmd WONT N/A N/A N/A opt N/A BINARY SGA N/A N/A N/A BadConnectionError Could not negotiate binary path. N/A _suboption N/A N/A self N/A N/A N/A subopt N/A self sbdataq N/A N/A self sbdataq N/A N/A N/A len subopt 3 N/A N/A N/A N/A logging error N/A N/A Bad suboption recieved: {!r} format subopt N/A N/A N/A N/A subopt N/A 0 COM_PORT_OPTION N/A N/A comopt N/A subopt N/A 1 N/A N/A comopt RESP_NOTIFY_LINESTATE N/A N/A value N/A subopt N/A 2 N/A N/A self _linestate N/A LineState N/A subopt N/A 2 N/A N/A N/A comopt RESP_NOTIFY_MODEMSTATE N/A N/A N/A self _modemstate N/A ModemState N/A subopt N/A 2 N/A N/A N/A comopt RESP_FLOWCONTROL_SUSPEND N/A N/A N/A self _suspended True N/A N/A N/A logging warning Telnet: requested to suspend tx. N/A N/A N/A comopt RESP_FLOWCONTROL_RESUME N/A N/A N/A self _suspended False N/A N/A N/A logging warning Telnet: requested to resume tx. N/A N/A N/A N/A logging warning N/A N/A Telnet: unhandled COM opton: {} format N/A repr subopt N/A N/A N/A N/A logging warning N/A N/A Telnet: unhandled subnegotion: {} format N/A repr subopt N/A interrupt N/A N/A self N/A N/A N/A N/A N/A self _sendall N/A IAC IP N/A N/A N/A self sync N/A sync N/A N/A self N/A N/A N/A N/A N/A self _sendall N/A IAC DM N/A socket MSG_OOB N/A N/A N/A self _process_rawq N/A send_command N/A N/A self cmd N/A N/A N/A N/A N/A self _sendall N/A IAC cmd N/A send_option N/A N/A self disp opt N/A N/A N/A N/A N/A self _sendall N/A N/A IAC disp opt N/A set_baud N/A N/A self rate N/A N/A N/A N/A N/A self send_com_option SET_BAUDRATE N/A N/A struct pack !I rate N/A send_com_option N/A N/A self opt value N/A N/A N/A N/A self _do_com N/A N/A N/A N/A self _sendall N/A N/A N/A N/A N/A N/A IAC SB COM_PORT_OPTION opt value IAC SE N/A N/A N/A TelnetError Use of COM option when not negotiated. N/A upload_zmodem N/A N/A self filename N/A N/A N/A Call external ZMODEM program to upload a file.
        Return an ExitStatus object that should indicate success or failure.
         N/A sockfd N/A N/A N/A self sock fileno N/A N/A pread pwrite N/A N/A os pipe N/A pid N/A N/A os fork N/A N/A pid 0 N/A N/A N/A N/A os dup2 sockfd 0 N/A N/A N/A os dup2 sockfd 1 N/A N/A N/A os dup2 pwrite 2 N/A N/A N/A os close pread N/A N/A N/A os close pwrite N/A fd N/A xrange 3 64 N/A N/A N/A N/A N/A N/A os close fd N/A N/A N/A N/A N/A N/A N/A os write 0 rz -e -q -s +30
 N/A N/A N/A os execlp sz sz -e -q -y -L 128 filename N/A N/A N/A os _exit 1 N/A N/A N/A os close pwrite N/A True N/A N/A N/A wpid es N/A N/A os waitpid pid 0 N/A N/A wpid pid N/A N/A N/A errout N/A N/A os read pread 4096 N/A es N/A ExitStatus N/A N/A sz {} format filename es N/A N/A es output errout N/A es N/A upload N/A N/A self filename N/A N/A N/A Basic upload using cat.
         N/A text N/A N/A N/A open filename read N/A sockfd N/A N/A N/A self sock fileno N/A N/A N/A os write sockfd N/A N/A cat - > {}
 format N/A N/A N/A os path basename filename N/A N/A N/A os write sockfd text N/A N/A N/A os write sockfd N/A N/A chr 4 N/A N/A ExitStatus cat 0 N/A readable N/A N/A self N/A N/A N/A True N/A writable N/A N/A self N/A N/A N/A False N/A priority N/A N/A self N/A N/A N/A True N/A read_handler N/A N/A self N/A N/A N/A N/A N/A self _fill_rawq N/A N/A N/A self _process_rawq N/A write_handler N/A N/A self N/A N/A N/A N/A pri_handler N/A N/A self N/A N/A N/A N/A N/A logging warning Telnet: unhandled pri event N/A hangup_handler N/A N/A self N/A N/A N/A N/A N/A logging warning Telnet: unhandled hangup event N/A error_handler N/A N/A self N/A N/A N/A N/A N/A logging warning Telnet: unhandled error N/A exception_handler N/A N/A self ex val tb N/A N/A N/A N/A N/A logging error N/A N/A Telnet poller error: {} ({}) format ex val N/A N/A LineState N/A object N/A __init__ N/A N/A self code N/A N/A N/A code N/A ord code N/A N/A self timeouterror N/A code 128 N/A N/A self transmit_shift_register_empty N/A code 64 N/A N/A self transmit_holding_register_empty N/A code 32 N/A N/A self break_detect_error N/A code 16 N/A N/A self framing_error N/A code 8 N/A N/A self parity_error N/A code 4 N/A N/A self overrun_error N/A code 2 N/A N/A self data_ready N/A code 1 N/A N/A ModemState N/A object N/A __init__ N/A N/A self code N/A N/A N/A code N/A ord code N/A N/A self carrier_detect N/A bool N/A code 128 N/A N/A self ring_indicator N/A bool N/A code 64 N/A N/A self dataset_ready N/A bool N/A code 32 N/A N/A self clear_to_send N/A bool N/A code 16 N/A N/A self delta_rx_detect N/A bool N/A code 8 N/A N/A self ring_indicator N/A bool N/A code 4 N/A N/A self delta_dataset_ready N/A bool N/A code 2 N/A N/A self delta_clear_to_send N/A bool N/A code 1 N/A __str__ N/A N/A self N/A N/A N/A N/A N/A ModemState:
         carrier_detect: {}
         ring_indicator: {}
          dataset_ready: {}
          clear_to_send: {}
        delta_rx_detect: {}
         ring_indicator: {}
    delta_dataset_ready: {}
    delta_clear_to_send: {}
         format N/A self carrier_detect N/A self ring_indicator N/A self dataset_ready N/A self clear_to_send N/A self delta_rx_detect N/A self ring_indicator N/A self delta_dataset_ready N/A self delta_clear_to_send N/A N/A get_telnet N/A N/A host port logfile N/A TELNET_PORT None N/A N/A N/A Telnet host port logfile N/A N/A N/A __name__ __main__ N/A pycopia autodebug pycopia expect N/A N/A N/A logging loglevel_debug N/A host venus N/A port 6001 N/A prompt $  N/A tn N/A Telnet host port N/A sess N/A N/A expect Expect tn prompt prompt N/A N/A N/A sess write N/A N/A N/A sess expect login: N/A N/A N/A sess send tester
 N/A N/A N/A sess expect assword: N/A N/A N/A sess send testme
 N/A N/A N/A sess wait_for_prompt N/A N/A print N/A N/A N/A N/A sess fileobject upload /etc/hosts N/A N/A N/A sess send_slow exit
 N/A N/A print linestate: N/A tn linestate N/A N/A print modemstate: N/A tn modemstate N/A N/A N/A sess close