mdwsetup.py: Fixes for Python 3 compatibility.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 1 Oct 2019 22:57:28 +0000 (23:57 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 8 May 2020 11:30:13 +0000 (12:30 +0100)
commit4e2368592f2b964ccd971ebf73c7b4268df5d666
tree261057fe1e62bf08c776b0a9d83e1815e1ea2fc3
parent514f1de64a582d3a183b853990484a2ac72f86a8
mdwsetup.py: Fixes for Python 3 compatibility.

  * Write parentheses around `print' operands.

  * Set `universal_newlines' on in `Popen' to force handling in text
    mode.

  * Use an unpleasant hack to inject the `CommandClass' metaclass,
    because the official syntax is so different between the two
    versions.
mdwsetup.py