Source: cmd2 Severity: important -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
Dear Maintainer, In Ubuntu, I updated to cmd2 0.6.8, however that version and the current Debian version 0.6.7 are both incompatible with Python 3.5. I've submitted the attached patch upstream to workaround a renaming of a private attribute. - -- System Information: Debian Release: stretch/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 4.1.0-2-amd64 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJV8wwCAAoJEBJutWOnSwa/kP8P/RGrBnZNjMKyzxiECjMRuMqy hkE8Af6LXSLHRmvBXahA2z7xkNlF5xDQ1DMl7Cv9cdzhqs5FUmRD/sEhjFguY0Jf /Mta7Yf//kaOwQMGSRgC0pYsiWocHPYyv4hzk2LTLxgAITRXk13mJLet7S42X/xT oheeN7ij9SEzVy1FDExMfezwLhv+2LCMcYQH8qlT76B3yprv35BGUj7+Rlf7U0gg 3ishxJoEV1IXqSiUHR+mIJJIJioyAg/jpsdJzVCcZI1SLu3qjhT8jcSF+eZY+5gd PuBDwqb4kQYvImnI9Gi2C4sm4rTStj7umDPoSwlFVpeBUuFIaNy6u6NBYJr4ZghQ vLqP8P1lmDqjnE9fxyQeEoIAHhL1tBBn1OsWH30lDfAo2JCHILyphx+PQYNXYu1b veViXPsZMV8Tae/cqr61bK4ABgtHGHc2V6KFLnpqM3Mnu4d72IYtNSHhYyZnZ5Hi mddlBJbW3BdPcDy91JeJ6x5Q+9hcUchv96a+MifYuXfqOg636uI3Z6dlmrvwt+ED bs2td+YrWRwbjDgk/L4wN3/8Owg1BxdgueH64mpv1rPXN+cJ0K540giWjK4o8fOY ysQaIv2GWb3C+IMgc4rPxjMQ+jYl1+cvsxNjYL4W9C0MS6CY0nSoA+KJnC7/hT+4 WPGt2VLCHm11+5dORQOm =sQPZ -----END PGP SIGNATURE-----
Description: Workaround the renaming of a private attribute in Python 3.5. Author: Barry Warsaw <ba...@ubuntu.com> Bug: https://bitbucket.org/catherinedevlin/cmd2/issues/18/python-35-renames-subprocessmswindows --- a/cmd2.py +++ b/cmd2.py @@ -47,6 +47,13 @@ if sys.version_info[0] == 2: pyparsing.ParserElement.enablePackrat() +try: + is_mswindows = subprocess.mswindows +except AttributeError: + # Python 3.5+ + is_mswindows = subprocess._mswindows + + """ Packrat is causing Python3 errors that I don't understand. @@ -184,7 +191,7 @@ to be installed on operating system. %s""" -if subprocess.mswindows: +if is_mswindows: try: import win32clipboard def get_paste_buffer():