[issue18419] For reasons I can't explain Python in some cases says that getstatusoutput is not an attribute of the commands module but it is and should be
Ezio Melotti
report at bugs.python.org
Wed Jul 10 01:31:10 CEST 2013
Ezio Melotti added the comment:
That's because subprocess.getstatusoutput exists only in Python 3, and not Python 2.7. The "if sys.version_info==2:" is also wrong, so subprocess is always selected, resulting in an error when the program is run with Python 2.
----------
components: +Library (Lib)
nosy: +ezio.melotti
resolution: -> invalid
stage: -> committed/rejected
status: open -> closed
type: -> behavior
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18419>
_______________________________________
More information about the Python-bugs-list
mailing list