[issue16112] platform.architecture does not correctly escape argument to /usr/bin/file

Jesús Cea Avión report at bugs.python.org
Fri Oct 5 16:11:47 CEST 2012


Jesús Cea Avión added the comment:

Antoine, I agree. I beg your pardon. This patch was suppose to be quite trivial, and "test_platform" passes just fine on my Linux and Solaris computers. And the four buildbots I was monitoring, the testsuite passed.

The suggestion of Marc-Andre of simply adding an "os.access()" to check for file existence first is quite sensible and would be enough and compatible in all platforms and python releases.

I am for backing out my patches so far and push a simple "os.access()" check. What do you think?.

Marc-Andre, I was wondering if you could elaborate a bit why 2.7 platform.py file should be able to run fine in 2.3 :-?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16112>
_______________________________________


More information about the Python-bugs-list mailing list