コード例 #1
0
    def __init__(self, console, _locals, *args, **kwargs):
        preProperties = System.getProperties()
        postProperties = Properties()

        console.log.debug('initializing interpreter with postProperties: %r',
                          postProperties)

        console.log.debug('Initializing interpreter with preProperties: %r',
                          preProperties)

        InteractiveInterpreter.initialize(preProperties, postProperties, args)

        InteractiveInterpreter.__init__(self, _locals)
        self.setOut(StdOutRedirector(self))
        self.setErr(StdErrRedirector(self))
        self.console = console
コード例 #2
0
    def __init__(self, console, _locals, *args, **kwargs):
        preProperties = System.getProperties()
        postProperties = Properties()

        console.callbacks.getStdout().write('Initializing interpreter with postProperties: %r\n' % (
            postProperties, ))

        console.callbacks.getStdout().write('Initializing interpreter with preProperties: %r\n' % (
            postProperties, ))

        InteractiveInterpreter.initialize(preProperties, postProperties, args)

        InteractiveInterpreter.__init__(self, _locals)
        self.setOut(StdOutRedirector(self))
        self.setErr(StdErrRedirector(self))
        self.console = console
コード例 #3
0
    def __init__(self, console, _locals, *args, **kwargs):
        preProperties = System.getProperties()
        postProperties = Properties()

        console.callbacks.getStdout().write(
            'Initializing interpreter with postProperties: %r\n' %
            (postProperties, ))

        console.callbacks.getStdout().write(
            'Initializing interpreter with preProperties: %r\n' %
            (postProperties, ))

        InteractiveInterpreter.initialize(preProperties, postProperties, args)

        InteractiveInterpreter.__init__(self, _locals)
        self.setOut(StdOutRedirector(self))
        self.setErr(StdErrRedirector(self))
        self.console = console
コード例 #4
0
 def __init__(self, console, _locals):
     InteractiveInterpreter.__init__(self, _locals)
     self.setOut(StdOutRedirector(self))
     self.setErr(StdErrRedirector(self))
     self.console = console
コード例 #5
0
ファイル: console.py プロジェクト: sechacking/jython-burp-api
 def __init__(self, console, _locals):
     InteractiveInterpreter.__init__(self, _locals)
     self.setOut(StdOutRedirector(self))
     self.setErr(StdErrRedirector(self))
     self.console = console