From c763fb9760fb7bef5fd1a78af2fe32ff7a2b50da Mon Sep 17 00:00:00 2001 From: schneefux Date: Wed, 8 Oct 2014 20:07:05 +0200 Subject: remove redundant variable assignment --- client/g2p.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'client/g2p.py') diff --git a/client/g2p.py b/client/g2p.py index 9e715c9..7b03386 100644 --- a/client/g2p.py +++ b/client/g2p.py @@ -39,10 +39,9 @@ class PhonetisaurusG2P(object): proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) stdoutdata, stderrdata = proc.communicate() - returncode = proc.returncode - if returncode != 0: + if proc.returncode != 0: logger.warning("Command '%s' return with exit status %d", - ' '.join(cmd), returncode) + ' '.join(cmd), proc.returncode) except OSError: logger.error("Error occured while executing command '%s'", ' '.join(cmd), exc_info=True) -- cgit v1.3.1