OpenQuizz
Une application de gestion des contenus pédagogiques
|
Data Structures | |
class | Git |
Variables | |
execute_kwargs | |
log | |
CREATE_NO_WINDOW | |
PROC_CREATIONFLAGS | |
CREATE_NEW_PROCESS_GROUP is needed to allow killing it afterwards, see https://docs.python.org/3/library/subprocess.html#subprocess.Popen.send_signal. More... | |
def git.cmd.dashify | ( | string | ) |
def git.cmd.dict_to_slots_and__excluded_are_none | ( | self, | |
d, | |||
excluded = () |
|||
) |
def git.cmd.handle_process_output | ( | process, | |
stdout_handler, | |||
stderr_handler, | |||
finalizer = None , |
|||
decode_streams = True |
|||
) |
Documentation
Registers for notifications to learn that process output is ready to read, and dispatches lines to the respective line handlers. This function returns once the finalizer returns :return: result of finalizer :param process: subprocess.Popen instance :param stdout_handler: f(stdout_line_string), or None :param stderr_handler: f(stderr_line_string), or None :param finalizer: f(proc) - wait for proc to finish :param decode_streams: Assume stdout/stderr streams are binary and decode them before pushing \ their contents to handlers. Set it to False if `universal_newline == True` (then streams are in text-mode) or if decoding must happen later (i.e. for Diffs).
def git.cmd.slots_to_dict | ( | self, | |
exclude = () |
|||
) |
CREATE_NO_WINDOW |
execute_kwargs |
log |
PROC_CREATIONFLAGS |
CREATE_NEW_PROCESS_GROUP is needed to allow killing it afterwards, see https://docs.python.org/3/library/subprocess.html#subprocess.Popen.send_signal.