Module Expr Str Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias alias alias ImportFrom alias ImportFrom alias FunctionDef arguments args defaults body Expr Str TryExcept body Expr BinOpFloorDiv Num Num handlers ExceptHandler body Return SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num Index Num decorator_list Assign NameStore Call NameLoad ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body 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 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 defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases body Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str decorator_list Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str Str decorator_list Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Str decorator_list Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Str Str decorator_list Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr ListLoad Str Str BinOpAdd Str NameLoad Str Str decorator_list Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str decorator_list Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr ListLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str Str decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr ListLoad Str decorator_list Return Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Expr Yield Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Expr Yield Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr ListLoad Str Expr Call AttributeLoad NameLoad attr Str Expr Yield Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Yield Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Expr Yield Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr ListLoad Str Str Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Expr Yield Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr ListLoad Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr ListLoad Str decorator_list Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str Str Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr ListLoad Str decorator_list Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Expr Yield Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str Expr Yield Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Yield Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Str Str decorator_list AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad AttributeLoad NameLoad attr NameLoad body Pass decorator_list ClassDef bases NameLoad AttributeLoad NameLoad attr NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Str decorator_list ClassDef bases NameLoad AttributeLoad NameLoad attr NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Str orelse Assign NameStore AttributeLoad NameLoad attr decorator_list
N/A N/A 
Tests for L{twisted.conch.manhole}.
 N/A traceback twisted.trial unittest twisted.internet error defer twisted.test.proto_helpers StringTransport twisted.conch.test.test_recvline _TelnetMixin _SSHMixin _StdioMixin stdio ssh twisted.conch manhole twisted.conch.insults insults determineDefaultFunctionName N/A N/A N/A N/A N/A 
    Return the string used by Python as the name for code objects which are
    compiled from interactive input or at the top-level of modules.
     N/A N/A N/A N/A 1 0 N/A N/A N/A N/A N/A N/A N/A N/A traceback extract_stack N/A -2 N/A 2 N/A N/A defaultFunctionName N/A determineDefaultFunctionName ManholeInterpreterTests N/A N/A unittest TestCase N/A N/A 
    Tests for L{manhole.ManholeInterpreter}.
     test_resetBuffer N/A N/A self N/A N/A N/A 
        L{ManholeInterpreter.resetBuffer} should empty the input buffer.
         N/A interpreter N/A N/A manhole ManholeInterpreter None N/A N/A N/A N/A interpreter buffer extend N/A 1 2 N/A N/A N/A interpreter resetBuffer N/A N/A N/A self assertFalse N/A interpreter buffer N/A N/A ManholeProtocolTests N/A N/A unittest TestCase N/A N/A 
    Tests for L{manhole.Manhole}.
     test_interruptResetsInterpreterBuffer N/A N/A self N/A N/A N/A 
        L{manhole.Manhole.handle_INT} should cause the interpreter input buffer
        to be reset.
         N/A transport N/A StringTransport N/A terminal N/A N/A insults ServerProtocol N/A manhole Manhole N/A N/A N/A terminal makeConnection transport N/A protocol N/A terminal terminalProtocol N/A interpreter N/A protocol interpreter N/A N/A N/A N/A interpreter buffer extend N/A 1 2 N/A N/A N/A protocol handle_INT N/A N/A N/A self assertFalse N/A interpreter buffer N/A N/A WriterTests N/A N/A unittest TestCase N/A testInteger N/A N/A self N/A N/A N/A N/A N/A manhole lastColorizedLine 1 N/A testDoubleQuoteString N/A N/A self N/A N/A N/A N/A N/A manhole lastColorizedLine "1" N/A testSingleQuoteString N/A N/A self N/A N/A N/A N/A N/A manhole lastColorizedLine '1' N/A testTripleSingleQuotedString N/A N/A self N/A N/A N/A N/A N/A manhole lastColorizedLine '''1''' N/A testTripleDoubleQuotedString N/A N/A self N/A N/A N/A N/A N/A manhole lastColorizedLine """1""" N/A testFunctionDefinition N/A N/A self N/A N/A N/A N/A N/A manhole lastColorizedLine def foo(): N/A testClassDefinition N/A N/A self N/A N/A N/A N/A N/A manhole lastColorizedLine class foo: N/A N/A ManholeLoopbackMixin N/A N/A N/A serverProtocol N/A manhole ColoredManhole wfd N/A N/A self d N/A N/A N/A N/A N/A defer waitForDeferred d N/A testSimpleExpression N/A N/A self N/A N/A N/A done N/A N/A N/A self recvlineClient expect done N/A N/A N/A self _testwrite 1 + 1
done finished N/A N/A ign N/A N/A N/A N/A N/A self _assertBuffer N/A >>> 1 + 1 2 >>> done N/A N/A N/A N/A done addCallback finished N/A testTripleQuoteLineContinuation N/A N/A self N/A N/A N/A done N/A N/A N/A self recvlineClient expect done N/A N/A N/A self _testwrite '''
'''
done finished N/A N/A ign N/A N/A N/A N/A N/A self _assertBuffer N/A >>> ''' ... ''' '\n' >>> done N/A N/A N/A N/A done addCallback finished N/A testFunctionDefinition N/A N/A self N/A N/A N/A done N/A N/A N/A self recvlineClient expect done N/A N/A N/A self _testwrite def foo(bar):
	print bar

foo(42)
done finished N/A N/A ign N/A N/A N/A N/A N/A self _assertBuffer N/A >>> def foo(bar): ...     print bar ...  >>> foo(42) 42 >>> done N/A N/A N/A N/A done addCallback finished N/A testClassDefinition N/A N/A self N/A N/A N/A done N/A N/A N/A self recvlineClient expect done N/A N/A N/A self _testwrite class Foo:
	def bar(self):
		print 'Hello, world!'

Foo().bar()
done finished N/A N/A ign N/A N/A N/A N/A N/A self _assertBuffer N/A >>> class Foo: ...     def bar(self): ...         print 'Hello, world!' ...  >>> Foo().bar() Hello, world! >>> done N/A N/A N/A N/A done addCallback finished N/A testException N/A N/A self N/A N/A N/A done N/A N/A N/A self recvlineClient expect done N/A N/A N/A self _testwrite raise Exception('foo bar baz')
done finished N/A N/A ign N/A N/A N/A N/A N/A self _assertBuffer N/A >>> raise Exception('foo bar baz') Traceback (most recent call last): N/A   File "<console>", line 1, in  defaultFunctionName Exception: foo bar baz >>> done N/A N/A N/A N/A done addCallback finished N/A testControlC N/A N/A self N/A N/A N/A done N/A N/A N/A self recvlineClient expect done N/A N/A N/A self _testwrite N/A N/A cancelled line N/A manhole CTRL_C done finished N/A N/A ign N/A N/A N/A N/A N/A self _assertBuffer N/A >>> cancelled line KeyboardInterrupt >>> done N/A N/A N/A N/A done addCallback finished N/A test_interruptDuringContinuation N/A N/A self N/A N/A N/A 
        Sending ^C to Manhole while in a state where more input is required to
        complete a statement should discard the entire ongoing statement and
        reset the input prompt to the non-continuation prompt.
         N/A continuing N/A N/A N/A self recvlineClient expect things N/A N/A N/A self _testwrite (
things gotContinuation N/A N/A ignored N/A N/A N/A N/A N/A self _assertBuffer N/A >>> ( ... things N/A interrupted N/A N/A N/A self recvlineClient expect >>>  N/A N/A N/A self _testwrite N/A manhole CTRL_C N/A interrupted N/A N/A N/A N/A continuing addCallback gotContinuation gotInterruption N/A N/A ignored N/A N/A N/A N/A N/A self _assertBuffer N/A >>> ( ... things KeyboardInterrupt >>>  N/A N/A N/A N/A continuing addCallback gotInterruption N/A continuing N/A testControlBackslash N/A N/A self N/A N/A N/A N/A N/A self _testwrite cancelled line N/A partialLine N/A N/A N/A self recvlineClient expect cancelled line gotPartialLine N/A N/A ign N/A N/A N/A N/A N/A self _assertBuffer N/A >>> cancelled line N/A N/A N/A self _testwrite N/A manhole CTRL_BACKSLASH N/A d N/A N/A self recvlineClient onDisconnection N/A N/A N/A self assertFailure d N/A error ConnectionDone N/A gotClearedLine N/A N/A ign N/A N/A N/A N/A N/A self _assertBuffer N/A N/A N/A N/A N/A N/A N/A partialLine addCallback gotPartialLine addCallback gotClearedLine N/A test_controlD N/A N/A self N/A N/A N/A 
        A CTRL+D in the middle of a line doesn't close a connection,
        but at the beginning of a line it does.
         N/A N/A N/A self _testwrite 1 + 1 N/A N/A N/A N/A N/A self recvlineClient expect \+ 1 N/A N/A N/A self _assertBuffer N/A >>> 1 + 1 N/A N/A N/A self _testwrite N/A N/A manhole CTRL_D  + 1 N/A N/A N/A N/A N/A self recvlineClient expect \+ 1 N/A N/A N/A self _assertBuffer N/A >>> 1 + 1 + 1 N/A N/A N/A self _testwrite N/A N/A N/A N/A N/A self recvlineClient expect 3
>>>  N/A N/A N/A self _testwrite N/A manhole CTRL_D N/A d N/A N/A self recvlineClient onDisconnection N/A N/A N/A N/A self assertFailure d N/A error ConnectionDone N/A N/A defer inlineCallbacks testControlL N/A N/A self N/A N/A N/A 
        CTRL+L is generally used as a redraw-screen command in terminal
        applications.  Manhole doesn't currently respect this usage of it,
        but it should at least do something reasonable in response to this
        event (rather than, say, eating your face).
         N/A N/A N/A self _testwrite 
1 + 1 N/A N/A N/A N/A N/A self recvlineClient expect \+ 1 N/A N/A N/A self _assertBuffer N/A >>>  >>> 1 + 1 N/A N/A N/A self _testwrite N/A N/A manhole CTRL_L  + 1 N/A N/A N/A N/A N/A self recvlineClient expect 1 \+ 1 \+ 1 N/A N/A N/A self _assertBuffer N/A >>> 1 + 1 + 1 N/A N/A defer inlineCallbacks test_controlA N/A N/A self N/A N/A N/A 
        CTRL-A can be used as HOME - returning cursor to beginning of
        current line buffer.
         N/A N/A N/A self _testwrite N/A N/A rint "hello" p N/A d N/A N/A N/A self recvlineClient expect print "hello" cb N/A N/A ignore N/A N/A N/A N/A N/A self _assertBuffer N/A >>> print "hello" N/A N/A N/A N/A d addCallback cb N/A test_controlE N/A N/A self N/A N/A N/A 
        CTRL-E can be used as END - setting cursor to end of current
        line buffer.
         N/A N/A N/A self _testwrite N/A N/A N/A N/A rint "hello p " N/A d N/A N/A N/A self recvlineClient expect print "hello" cb N/A N/A ignore N/A N/A N/A N/A N/A self _assertBuffer N/A >>> print "hello" N/A N/A N/A N/A d addCallback cb N/A test_deferred N/A N/A self N/A N/A N/A 
        When a deferred is returned to the manhole REPL, it is displayed with
        an sequence number, and when the deferred fires, the result is printed.
         N/A N/A N/A self _testwrite from twisted.internet import defer, reactor
d = defer.Deferred()
d
 N/A N/A N/A N/A N/A self recvlineClient expect <Deferred #0> N/A N/A N/A self _testwrite c = reactor.callLater(0.1, d.callback, 'Hi!')
 N/A N/A N/A N/A N/A self recvlineClient expect >>>  N/A N/A N/A N/A N/A self recvlineClient expect Deferred #0 called back: 'Hi!'
>>>  N/A N/A N/A self _assertBuffer N/A >>> from twisted.internet import defer, reactor >>> d = defer.Deferred() >>> d <Deferred #0> >>> c = reactor.callLater(0.1, d.callback, 'Hi!') Deferred #0 called back: 'Hi!' >>>  N/A N/A defer inlineCallbacks N/A ManholeLoopbackTelnetTests N/A _TelnetMixin N/A unittest TestCase ManholeLoopbackMixin N/A N/A N/A ManholeLoopbackSSHTests N/A _SSHMixin N/A unittest TestCase ManholeLoopbackMixin N/A N/A N/A ssh None N/A N/A skip Crypto requirements missing, can't run manhole tests over ssh N/A ManholeLoopbackStdioTests N/A _StdioMixin N/A unittest TestCase ManholeLoopbackMixin N/A N/A N/A stdio None N/A N/A skip Terminal requirements missing, can't run manhole tests over stdio N/A N/A serverProtocol N/A stdio ConsoleManhole N/A