summaryrefslogtreecommitdiff
path: root/blessings
diff options
context:
space:
mode:
authorErik Rose <grinch@grinchcentral.com>2018-10-24 13:59:12 -0400
committerGitHub <noreply@github.com>2018-10-24 13:59:12 -0400
commitb1d4daf948d1db8455af64836906785204d09055 (patch)
tree39f87b68700c22bf867b708b1431d190eafbaba9 /blessings
parentd58e312c9c6ac938e170f9e40fe5a2bda6fd4932 (diff)
parentfeb98cf9f9d48a29c0b9957561ef01179fcd44ef (diff)
downloadblessings-b1d4daf948d1db8455af64836906785204d09055.tar.gz
Merge test-running under 3.7 + new set syntax. Close #139.
Diffstat (limited to 'blessings')
-rw-r--r--blessings/__init__.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/blessings/__init__.py b/blessings/__init__.py
index 779ca09..45e5781 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):