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.23:05:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1448838332.47.0.0543500546591.issue25627@psf.upfronthosting.co.za>
In-reply-to
Content
Okay so now I see 2.7 doesn’t support the context manager. I was mainly curious why you didn’t want to use subprocess. However a bigger problem with your first patch is shlex.quote() does not appear to be in Python 2 either.

If you want to use proc.communicate() rather than reading line by line, perhaps subprocess.check_output() would be simpler. I’m not familiar with the RPM command but if there is only a modest amount of output it should be good enough.
History
Date User Action Args
2015-11-29 23:05:32martin.pantersetrecipients: + martin.panter, eric.araujo, r.david.murray, SilentGhost, dstufft, TheRegRunner
2015-11-29 23:05:32martin.pantersetmessageid: <1448838332.47.0.0543500546591.issue25627@psf.upfronthosting.co.za>
2015-11-29 23:05:32martin.panterlinkissue25627 messages
2015-11-29 23:05:32martin.pantercreate