summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2017-08-07 23:22:11 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2017-08-07 23:22:11 -0400
commit3a3c867c0715e03e30cc30bea7b08604af3aacdc (patch)
treed5c6a69fd6c826d20803abb10f323087b852ca70 /docs
parentde9cda230d3623f7c5c73e4b1a3827e906160208 (diff)
downloadcmd2-git-3a3c867c0715e03e30cc30bea7b08604af3aacdc.tar.gz
Changed how the pipe file descriptors get opened on Python 3 vs 2
Open them in text mode in Python 3 so self.stdout.write() expects normal Python 3 (unicode) strings. Open them in binary mode in Python 2 so self.stdout.write() expects normal Python 2 (byte) strings. Also fixed a unit test mocking issue on Python 2 to account for the fact that Python 2.7 requires the subprocess32 module instead of subprocess.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions