aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo/util.py
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageialinux-online.org>2015-10-27 13:49:31 +0100
committerPapoteur <papoteur@mageialinux-online.org>2015-10-27 13:49:31 +0100
commit7349895c380a6ca31c343a9eabf45bf9671a6dff (patch)
treec629cffc1933147dcccc6433829ebbbab1bb19d2 /MgaRepo/util.py
parent3a4d9b237f451c8395ecb80ca78c67c8f1d58638 (diff)
downloadmgarepo-7349895c380a6ca31c343a9eabf45bf9671a6dff.tar
mgarepo-7349895c380a6ca31c343a9eabf45bf9671a6dff.tar.gz
mgarepo-7349895c380a6ca31c343a9eabf45bf9671a6dff.tar.bz2
mgarepo-7349895c380a6ca31c343a9eabf45bf9671a6dff.tar.xz
mgarepo-7349895c380a6ca31c343a9eabf45bf9671a6dff.zip
correct types for strings in util.py and svn.py
Diffstat (limited to 'MgaRepo/util.py')
-rw-r--r--MgaRepo/util.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/MgaRepo/util.py b/MgaRepo/util.py
index 1971918..86fa071 100644
--- a/MgaRepo/util.py
+++ b/MgaRepo/util.py
@@ -30,11 +30,11 @@ def execcmd(*cmd, **kwargs):
if kwargs.get("geterr"):
err = BytesIO()
pstdin = kwargs.get("stdin") if kwargs.get("stdin") else None
- pipe = subprocess.Popen(cmdstr, shell=True,
+ p = subprocess.Popen(cmdstr, shell=True,
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
stdin=pstdin)
- of = pipe.stdout.fileno()
- ef = pipe.stderr.fileno()
+ of = p.stdout.fileno()
+ ef = p.stderr.fileno()
while True:
r,w,x = select.select((of,ef), (), ())
odata = None
@@ -48,8 +48,8 @@ def execcmd(*cmd, **kwargs):
err.write(edata)
sys.stderr.buffer.write(edata)
- status = pipe.poll()
- if status is not None and odata == "" and edata == "":
+ status = p.poll()
+ if status is not None and odata == b'' and edata == b'':
break
output = err.getvalue()
else: