Message162844
| Author |
p.fedin |
| Recipients |
p.fedin |
| Date |
2012年06月15日.05:53:19 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1339739600.87.0.936564016625.issue15073@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
commands.getoutput() is broken on Windows. The issue has been detected in v2.7.2, but still persists in v2.7.3:
--- cut ---
Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import commands;
>>> print commands.getoutput("dir");
'{' is not recognized as an internal or external command,
operable program or batch file.
>>>
--- cut ---
The error message comes from cmd.exe. Looks like Python tries to feed native Windows shell with UNIX-style commands sequence in {...}.
I believe this is very simple to fix, please take a look at it. Some our internal software croaks because of this. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年06月15日 05:53:20 | p.fedin | set | recipients:
+ p.fedin |
| 2012年06月15日 05:53:20 | p.fedin | set | messageid: <1339739600.87.0.936564016625.issue15073@psf.upfronthosting.co.za> |
| 2012年06月15日 05:53:20 | p.fedin | link | issue15073 messages |
| 2012年06月15日 05:53:19 | p.fedin | create |
|