Skip to content

Commit

Permalink
Bump colorama version max to 0.3.7
Browse files Browse the repository at this point in the history
This uses the `strip` argument to preserve the previous behavior
of colorizing when output is redirected.

Fixes #2043
Resolves #2037
Resolves #1742
  • Loading branch information
JordonPhillips committed Jul 12, 2016
1 parent 28f4a8b commit e64e7e5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions awscli/table.py
Expand Up @@ -161,9 +161,9 @@ def style_indentation_char(self, text):

class ColorizedStyler(Styler):
def __init__(self):
# autoreset allows us to not have to sent
# reset sequences for every string.
colorama.init(autoreset=True)
# `autoreset` allows us to not have to sent reset sequences for every
# string. `strip` lets us preserve color when redirecting.
colorama.init(autoreset=True, strip=False)

def style_title(self, text):
# Originally bold + underline
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Expand Up @@ -7,7 +7,7 @@ docutils>=0.10
-e git://github.com/boto/s3transfer.git@develop#egg=s3transfer
-e git://github.com/boto/jmespath.git@develop#egg=jmespath
nose==1.3.0
colorama>=0.2.5,<=0.3.3
colorama>=0.2.5,<=0.3.7
mock==1.3.0
rsa>=3.1.2,<=3.5.0
wheel==0.24.0
2 changes: 1 addition & 1 deletion setup.cfg
Expand Up @@ -5,7 +5,7 @@ universal = 1
[metadata]
requires-dist =
botocore==1.4.36
colorama>=0.2.5,<=0.3.3
colorama>=0.2.5,<=0.3.7
docutils>=0.10
rsa>=3.1.2,<=3.5.0
s3transfer==0.0.1
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -7,7 +7,7 @@


requires = ['botocore==1.4.36',
'colorama>=0.2.5,<=0.3.3',
'colorama>=0.2.5,<=0.3.7',
'docutils>=0.10',
'rsa>=3.1.2,<=3.5.0',
's3transfer==0.0.1']
Expand Down

0 comments on commit e64e7e5

Please sign in to comment.