diff options
author | Jeff Quast <jquast@io.com> | 2015-01-03 19:17:40 -0800 |
---|---|---|
committer | Jeff Quast <jquast@io.com> | 2015-01-03 19:17:40 -0800 |
commit | 3bc984e4da49890a3e3e9bcee18dc870015e8341 (patch) | |
tree | 62c313aaa80408b98be16054109f3aa7aaee82bb | |
parent | 9baa2230f40d92fa5494335af44a963196029671 (diff) | |
download | blessings-3bc984e4da49890a3e3e9bcee18dc870015e8341.tar.gz |
make toe(1) generation py26-compatible
-rw-r--r-- | blessed/tests/accessories.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/blessed/tests/accessories.py b/blessed/tests/accessories.py index a877018..8cd1e1e 100644 --- a/blessed/tests/accessories.py +++ b/blessed/tests/accessories.py @@ -34,7 +34,8 @@ from blessed._binterms import binary_terminals try: all_terms_params = (set( _term.split(None, 1)[0].decode('ascii') for _term in - subprocess.check_output(('toe',)).splitlines() + subprocess.Popen(["toe"], stdout=subprocess.PIPE, close_fds=True) + .communicate()[0].splitlines() ) - (set(binary_terminals) if not os.environ.get('TEST_BINTERMS') else set())) except OSError: |