This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients SilentGhost, TheRegRunner, dstufft, eric.araujo, martin.panter, r.david.murray
Date 2015-11-29.11:39:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I don’t understand what 2.7 has got to do with using subprocess or not. Jumping through a shell quoting hoop only to pass a command to the shell to be unquoted seems like double handling. This is how I might rewrite it (untested):

q_cmd = ("rpm", "-q", "--qf", r"%s %s\n" % (...), "--specfile", spec_path)
with subprocess.Popen(q_cmd, stdout=PIPE, universal_newlines=?) as proc:
    for line in proc.stdout:
if proc.returncode:
    raise DistutilsExecError(...)
Date User Action Args
2015-11-29 11:39:52martin.pantersetrecipients: + martin.panter, eric.araujo, r.david.murray, SilentGhost, dstufft, TheRegRunner
2015-11-29 11:39:52martin.pantersetmessageid: <>
2015-11-29 11:39:52martin.panterlinkissue25627 messages
2015-11-29 11:39:52martin.pantercreate