diff options
author | Papoteur <papoteur@mageialinux-online.org> | 2016-02-21 12:35:07 +0100 |
---|---|---|
committer | Papoteur <papoteur@mageialinux-online.org> | 2016-02-21 12:35:07 +0100 |
commit | eeb0721539c3e389fde2a65b8406392a83473e63 (patch) | |
tree | a19091dde771f9fcdc2c7f488289d655f4260d1c /MgaRepo/util.py | |
parent | b09cf55fc133349845f5bfed78335d93594f73a0 (diff) | |
download | mgarepo-eeb0721539c3e389fde2a65b8406392a83473e63.tar mgarepo-eeb0721539c3e389fde2a65b8406392a83473e63.tar.gz mgarepo-eeb0721539c3e389fde2a65b8406392a83473e63.tar.bz2 mgarepo-eeb0721539c3e389fde2a65b8406392a83473e63.tar.xz mgarepo-eeb0721539c3e389fde2a65b8406392a83473e63.zip |
Revert "Restablish a print after a svn command"
This reverts commit b09cf55fc133349845f5bfed78335d93594f73a0.
Diffstat (limited to 'MgaRepo/util.py')
-rw-r--r-- | MgaRepo/util.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/MgaRepo/util.py b/MgaRepo/util.py index 4b1308a..2ffd1b4 100644 --- a/MgaRepo/util.py +++ b/MgaRepo/util.py @@ -74,32 +74,9 @@ def execcmd(*cmd, **kwargs): else: raise Error("command failed: %s\n%s\n" % (cmdstr, output)) if verbose: - print(output) sys.stdout.write(output) return status, output -def get_output_exec(cmdstr): - output = StringIO() - err = StringIO() - p = subprocess.Popen(cmdstr, shell=True, - stdout=subprocess.PIPE, stderr=subprocess.PIPE) - of = p.stdout.fileno() - ef = p.stderr.fileno() - while True: - r,w,x = select.select((of,ef), (), ()) - odata = None - if of in r: - odata = (os.read(of, 8192)).decode('utf8') - output.write(odata) - edata = None - if ef in r: - edata = (os.read(ef, 8192)).decode('utf8') - err.write(edata) - status = p.poll() - if status is not None and odata == '' and edata == '': - break - return output.getvalue() - def get_auth(username=None, password=None): set_username = 1 set_password = 1 |