forked from extern/httpie-cli
Fix Windows branch.
This commit is contained in:
parent
15e62ad26d
commit
56d33a8e51
@ -56,7 +56,7 @@ class Environment(object):
|
|||||||
actual_stdout = self.stdout
|
actual_stdout = self.stdout
|
||||||
if is_windows:
|
if is_windows:
|
||||||
from colorama import AnsiToWin32
|
from colorama import AnsiToWin32
|
||||||
if isinstance(AnsiToWin32, self.stdout):
|
if isinstance(self.stdout, AnsiToWin32):
|
||||||
actual_stdout = self.stdout.wrapped
|
actual_stdout = self.stdout.wrapped
|
||||||
self.stdout_encoding = getattr(
|
self.stdout_encoding = getattr(
|
||||||
actual_stdout, 'encoding', None) or 'utf8'
|
actual_stdout, 'encoding', None) or 'utf8'
|
||||||
|
Loading…
Reference in New Issue
Block a user