Пример #1
0
    def __init__(self, file, verbose, interactive, timeout=None, **fields):
        super().__init__(**fields)
        self.file = file
        self.verbose = verbose
        self.interactive = interactive
        self.timeout = timeout

        self.console = pyconsole.PythonConsole(self.verbose, self.interactive,
                                               self.timeout)
Пример #2
0
    def __init__(self,
                 file,
                 verbose,
                 interactive,
                 timeout=None,
                 ignore_empty=False,
                 parsons=False,
                 **fields):
        super().__init__(**fields)
        self.file = file
        self.verbose = verbose
        self.interactive = interactive
        self.timeout = timeout
        self.ignore_empty = ignore_empty

        self.console = pyconsole.PythonConsole(self.verbose, self.interactive,
                                               self.timeout, parsons)
Пример #3
0
 def createConsole(self, verbose=True, interactive=False, timeout=None):
     return pyconsole.PythonConsole(verbose, interactive, timeout)