summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDennis Gilmore <dennis@ausil.us>2011-01-05 23:13:39 -0600
committerDennis Gilmore <dennis@ausil.us>2011-01-05 23:13:39 -0600
commite04146557c91df8986de1a7f391dab86622cb59f (patch)
tree1616670b9682a2a6e9bc4ff536ca5ec793f296ec
parent409589349dd1c3f318d5c47764a8490aaf1542f9 (diff)
downloadfedora-packager-e04146557c91df8986de1a7f391dab86622cb59f.zip
fedora-packager-e04146557c91df8986de1a7f391dab86622cb59f.tar.gz
fedora-packager-e04146557c91df8986de1a7f391dab86622cb59f.tar.xz
Import subprocess from stdlib when possible
patch from Toshio https://bugzilla.redhat.com/show_bug.cgi?id=667433#c6
-rw-r--r--src/pyfedpkg/__init__.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py
index fe426c2..17f5df8 100644
--- a/src/pyfedpkg/__init__.py
+++ b/src/pyfedpkg/__init__.py
@@ -14,10 +14,11 @@ import sys
import shutil
import re
import pycurl
-try:
- from kitchen.pycompat27 import subprocess
-except ImportError:
+if sys.version_info[0:2] >= (2, 5):
import subprocess
+else:
+ # We need a subprocess that has check_call
+ from kitchen.pycompat27 import subprocess
import hashlib
import koji
import rpm