Message255601
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. |
|
Date |
User |
Action |
Args |
2015-11-29 23:05:32 | martin.panter | set | recipients:
+ martin.panter, eric.araujo, r.david.murray, SilentGhost, dstufft, TheRegRunner |
2015-11-29 23:05:32 | martin.panter | set | messageid: <1448838332.47.0.0543500546591.issue25627@psf.upfronthosting.co.za> |
2015-11-29 23:05:32 | martin.panter | link | issue25627 messages |
2015-11-29 23:05:32 | martin.panter | create | |
|