コード例 #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
ファイル: models.py プロジェクト: yuvipanda/ok-client
    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)