From 56d33a8e5120444f9f372e036601810bf8eaf6d7 Mon Sep 17 00:00:00 2001 From: Jakub Roztocil Date: Sat, 26 Apr 2014 15:10:39 +0200 Subject: [PATCH] Fix Windows branch. --- httpie/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpie/models.py b/httpie/models.py index 63202345..4327f81d 100644 --- a/httpie/models.py +++ b/httpie/models.py @@ -56,7 +56,7 @@ class Environment(object): actual_stdout = self.stdout if is_windows: from colorama import AnsiToWin32 - if isinstance(AnsiToWin32, self.stdout): + if isinstance(self.stdout, AnsiToWin32): actual_stdout = self.stdout.wrapped self.stdout_encoding = getattr( actual_stdout, 'encoding', None) or 'utf8'