summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo <hugovk@users.noreply.github.com>2018-10-21 19:02:08 +0300
committerHugo <hugovk@users.noreply.github.com>2018-10-21 19:02:08 +0300
commitfeb98cf9f9d48a29c0b9957561ef01179fcd44ef (patch)
treeb29737a8bd9a23b83fc0b9a227a42c410be132c6
parenta2f4f6e5ccf4f1a5bba0f9ee43c6a3237bec9612 (diff)
downloadblessings-feb98cf9f9d48a29c0b9957561ef01179fcd44ef.tar.gz
Upgrade Python syntax with pyupgrade https://github.com/asottile/pyupgrade
-rw-r--r--blessings/__init__.py12
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):