Merge branch '2017.7.6' into '2017.7'

No conflicts.
This commit is contained in:
rallytime 2018-05-22 15:10:49 -04:00
commit b75f5ae38e
No known key found for this signature in database
GPG key ID: E8F1A4B90D0DEA19

View file

@ -7,6 +7,8 @@ for managing outputters.
# Import python libs
from __future__ import print_function
from __future__ import absolute_import
import io
import re
import os
import sys
@ -169,7 +171,7 @@ def get_printout(out, opts=None, **kwargs):
'''
try:
fileno = sys.stdout.fileno()
except AttributeError:
except (AttributeError, io.UnsupportedOperation):
fileno = -1 # sys.stdout is StringIO or fake
return not os.isatty(fileno)