diff options
author | Hugo <hugovk@users.noreply.github.com> | 2018-10-21 19:02:08 +0300 |
---|---|---|
committer | Hugo <hugovk@users.noreply.github.com> | 2018-10-21 19:02:08 +0300 |
commit | feb98cf9f9d48a29c0b9957561ef01179fcd44ef (patch) | |
tree | b29737a8bd9a23b83fc0b9a227a42c410be132c6 /blessings/__init__.py | |
parent | a2f4f6e5ccf4f1a5bba0f9ee43c6a3237bec9612 (diff) | |
download | blessings-feb98cf9f9d48a29c0b9957561ef01179fcd44ef.tar.gz |
Upgrade Python syntax with pyupgrade https://github.com/asottile/pyupgrade
Diffstat (limited to 'blessings/__init__.py')
-rw-r--r-- | blessings/__init__.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/blessings/__init__.py b/blessings/__init__.py index d9305e6..878720a 100644 --- a/blessings/__init__.py +++ b/blessings/__init__.py @@ -418,14 +418,14 @@ def derivative_colors(colors): [('on_bright_' + c) for c in colors]) -COLORS = set(['black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan', - 'white']) +COLORS = {'black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan', + 'white'} COLORS.update(derivative_colors(COLORS)) -SINGLES = set(['bold', 'reverse', 'blink', 'dim', 'flash']) -DUALS = set([ +SINGLES = {'bold', 'reverse', 'blink', 'dim', 'flash'} +DUALS = { 'underline', 'italic', 'shadow', 'standout', 'subscript', 'superscript' -]) -COMPOUNDABLES = (COLORS | SINGLES | DUALS | set(['no_' + c for c in DUALS])) +} +COMPOUNDABLES = (COLORS | SINGLES | DUALS | {'no_' + c for c in DUALS}) class ParametrizingString(text_type): |