From 210327ebb4f58b84ff5f38541beda57a06ee5a69 Mon Sep 17 00:00:00 2001 From: schneefux Date: Wed, 1 Oct 2014 14:00:28 +0200 Subject: Minor style fix in phonetisaurus-g2p code --- client/g2p.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'client') diff --git a/client/g2p.py b/client/g2p.py index 8ce7997..1e63d74 100644 --- a/client/g2p.py +++ b/client/g2p.py @@ -25,9 +25,7 @@ class PhonetisaurusG2P(object): cmd_exists = shutil.which # Required binary for this class cmd = 'phonetisaurus-g2p' - if not cmd_exists(cmd): - return False - return True + return cmd_exists(cmd) @classmethod def execute(cls, fst_model, input, is_file=False, nbest=None): -- cgit v1.3.1