Package: python3-cmd2
Version: 0.6.7-2
Severity: grave

Hi,

When using cmd2 in the unit test suite of python-cliff, I get:

  File 
"/home/zigo/sources/openstack/liberty/python-cliff/build-area/python-cliff-1.15.0/cliff/interactive.py",
 line 10, in <module>
    import cmd2
  File "/usr/lib/python3/dist-packages/cmd2.py", line 181, in <module>
    if subprocess.mswindows:
AttributeError: module 'subprocess' has no attribute 'mswindows'

Obviously, I'm not running mswindows... :)

Changing the line 181 from:
if subprocess.mswindows:

to:
if hasattr(subprocess, 'mswindows'):

fixed it. There must be so many ways to fix it anyway (we just need to
neutralize the code for MSWin...).

Cheers,

Thomas Goirand (zigo)

Reply via email to