summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-10-08 20:07:05 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2014-10-08 20:53:11 +0200
commitc763fb9760fb7bef5fd1a78af2fe32ff7a2b50da (patch)
treefde5de131fad7e325634220061d23ca82aa19491 /client
parent12a73debc9366aff44e32d119234cd8898205991 (diff)
downloadjasper-client-c763fb9760fb7bef5fd1a78af2fe32ff7a2b50da.tar.gz
jasper-client-c763fb9760fb7bef5fd1a78af2fe32ff7a2b50da.zip
remove redundant variable assignment
Diffstat (limited to 'client')
-rw-r--r--client/g2p.py5
1 files changed, 2 insertions, 3 deletions
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)