]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
setup: Use `subprocess.check_call()`
authorAarni Koskela <akx@iki.fi>
Sun, 7 Feb 2016 13:14:57 +0000 (15:14 +0200)
committerAarni Koskela <akx@iki.fi>
Sun, 7 Feb 2016 16:43:33 +0000 (18:43 +0200)
It's available since Python 2.5, so it's safe for our use.

setup.py

index 222c97ebe6497a6cf824a83201b96522fa0d35c6..73cc0c49b4f5022274971e175765a81b1c2df448 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -24,8 +24,7 @@ class import_cldr(Command):
         pass
 
     def run(self):
-        c = subprocess.Popen([sys.executable, 'scripts/download_import_cldr.py'])
-        c.wait()
+        subprocess.check_call([sys.executable, 'scripts/download_import_cldr.py'])
 
 
 setup(