Skip to content

Commit

Permalink
👹 Feed the hobgoblins (delint).
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jun 9, 2023
1 parent 03687e5 commit 4f82c10
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 35 deletions.
16 changes: 0 additions & 16 deletions cssutils/css/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,11 @@
'aqua': (0, 255, 255, 1.0),
'aliceblue': (240, 248, 255, 1.0),
'antiquewhite': (250, 235, 215, 1.0),
'aqua': (0, 255, 255, 1.0),
'aquamarine': (127, 255, 212, 1.0),
'azure': (240, 255, 255, 1.0),
'beige': (245, 245, 220, 1.0),
'bisque': (255, 228, 196, 1.0),
'black': (0, 0, 0, 1.0),
'blanchedalmond': (255, 235, 205, 1.0),
'blue': (0, 0, 255, 1.0),
'blueviolet': (138, 43, 226, 1.0),
'brown': (165, 42, 42, 1.0),
'burlywood': (222, 184, 135, 1.0),
Expand Down Expand Up @@ -79,13 +76,10 @@
'firebrick': (178, 34, 34, 1.0),
'floralwhite': (255, 250, 240, 1.0),
'forestgreen': (34, 139, 34, 1.0),
'fuchsia': (255, 0, 255, 1.0),
'gainsboro': (220, 220, 220, 1.0),
'ghostwhite': (248, 248, 255, 1.0),
'gold': (255, 215, 0, 1.0),
'goldenrod': (218, 165, 32, 1.0),
'gray': (128, 128, 128, 1.0),
'green': (0, 128, 0, 1.0),
'greenyellow': (173, 255, 47, 1.0),
'grey': (128, 128, 128, 1.0),
'honeydew': (240, 255, 240, 1.0),
Expand Down Expand Up @@ -113,11 +107,9 @@
'lightslategrey': (119, 136, 153, 1.0),
'lightsteelblue': (176, 196, 222, 1.0),
'lightyellow': (255, 255, 224, 1.0),
'lime': (0, 255, 0, 1.0),
'limegreen': (50, 205, 50, 1.0),
'linen': (250, 240, 230, 1.0),
'magenta': (255, 0, 255, 1.0),
'maroon': (128, 0, 0, 1.0),
'mediumaquamarine': (102, 205, 170, 1.0),
'mediumblue': (0, 0, 205, 1.0),
'mediumorchid': (186, 85, 211, 1.0),
Expand All @@ -132,9 +124,7 @@
'mistyrose': (255, 228, 225, 1.0),
'moccasin': (255, 228, 181, 1.0),
'navajowhite': (255, 222, 173, 1.0),
'navy': (0, 0, 128, 1.0),
'oldlace': (253, 245, 230, 1.0),
'olive': (128, 128, 0, 1.0),
'olivedrab': (107, 142, 35, 1.0),
'orange': (255, 165, 0, 1.0),
'orangered': (255, 69, 0, 1.0),
Expand All @@ -149,8 +139,6 @@
'pink': (255, 192, 203, 1.0),
'plum': (221, 160, 221, 1.0),
'powderblue': (176, 224, 230, 1.0),
'purple': (128, 0, 128, 1.0),
'red': (255, 0, 0, 1.0),
'rosybrown': (188, 143, 143, 1.0),
'royalblue': (65, 105, 225, 1.0),
'saddlebrown': (139, 69, 19, 1.0),
Expand All @@ -159,7 +147,6 @@
'seagreen': (46, 139, 87, 1.0),
'seashell': (255, 245, 238, 1.0),
'sienna': (160, 82, 45, 1.0),
'silver': (192, 192, 192, 1.0),
'skyblue': (135, 206, 235, 1.0),
'slateblue': (106, 90, 205, 1.0),
'slategray': (112, 128, 144, 1.0),
Expand All @@ -168,14 +155,11 @@
'springgreen': (0, 255, 127, 1.0),
'steelblue': (70, 130, 180, 1.0),
'tan': (210, 180, 140, 1.0),
'teal': (0, 128, 128, 1.0),
'thistle': (216, 191, 216, 1.0),
'tomato': (255, 99, 71, 1.0),
'turquoise': (64, 224, 208, 1.0),
'violet': (238, 130, 238, 1.0),
'wheat': (245, 222, 179, 1.0),
'white': (255, 255, 255, 1.0),
'whitesmoke': (245, 245, 245, 1.0),
'yellow': (255, 255, 0, 1.0),
'yellowgreen': (154, 205, 50, 1.0),
}
1 change: 0 additions & 1 deletion cssutils/tests/test_cssimportrule.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ def test_cssText(self):
'''@IMPORT "str";''': '''@import "str";''',
'''@import 'str';''': '''@import "str";''',
'''@import 'str' ;''': '''@import "str";''',
'''@import "str";''': None,
'''@import "str" ;''': '''@import "str";''',
r'''@import "\"" ;''': r'''@import "\"";''',
'''@import '\\'';''': r'''@import "'";''',
Expand Down
2 changes: 1 addition & 1 deletion cssutils/tests/test_cssstylesheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def test_namespaces1(self):
# __contains__
assert '' in s.namespaces
assert 'ex2' in s.namespaces
assert not ('NOTSET' in s.namespaces)
assert "NOTSET" not in s.namespaces
# __delitem__
with pytest.raises(xml.dom.NoModificationAllowedErr):
s.namespaces.__delitem__('ex2')
Expand Down
4 changes: 0 additions & 4 deletions cssutils/tests/test_cssvalue.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,11 @@ def test_cssText2(self):
'u\\rl(a)': 'url(a)',
'url("a")': 'url(a)',
'url( "a" )': 'url(a)',
'url(a)': 'url(a)',
'url(";")': 'url(";")',
'url(",")': 'url(",")',
'url(")")': 'url(")")',
'''url("'")''': '''url("'")''',
'''url('"')''': '''url("\\"")''',
'''url("'")''': '''url("'")''',
# operator
'1': '1',
'1 2': '1 2',
'1 2': '1 2',
'1,2': '1, 2',
Expand Down
7 changes: 0 additions & 7 deletions cssutils/tests/test_selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,9 @@ def test_selectorText(self):
'a> b': 'a > b',
'a >b': 'a > b',
'a > b': 'a > b',
# +
'a+b': 'a + b',
'a+ b': 'a + b',
'a +b': 'a + b',
'a + b': 'a + b',
# ~
'a~b': 'a ~ b',
'a~ b': 'a ~ b',
'a ~b': 'a ~ b',
'a ~ b': 'a ~ b',
Expand Down Expand Up @@ -253,7 +249,6 @@ def test_selectorText(self):
'''a[x |= en]''': 'a[x|=en]',
'''a[ x |= en]''': 'a[x|=en]',
'''a[x |= en ]''': 'a[x|=en]',
'''a[ x |= en]''': 'a[x|=en]',
'''a [ x |= en]''': 'a [x|=en]',
# CSS3
'''a[x^=en]''': None,
Expand Down Expand Up @@ -428,8 +423,6 @@ def test_specificity(self):
'a.a.b': (0, 0, 2, 1),
'.a .a': (0, 0, 2, 0),
'*[x]': (0, 0, 1, 0),
'*[x]': (0, 0, 1, 0),
'*[x]': (0, 0, 1, 0),
'*[x=a]': (0, 0, 1, 0),
'*[x~=a]': (0, 0, 1, 0),
'*[x|=a]': (0, 0, 1, 0),
Expand Down
1 change: 0 additions & 1 deletion cssutils/tests/test_serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,6 @@ def test_canonical(self):
'''00.0s''': '''0s''',
'''00.0khz''': '''0khz''',
'''00.0hz''': '''0hz''',
'''00.0khz''': '''0khz''',
'''00.0deg''': '''0deg''',
'''00.0rad''': '''0rad''',
'''00.0grad''': '''0grad''',
Expand Down
4 changes: 2 additions & 2 deletions cssutils/tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ def test_all(self):
# len
assert 2 == len(ls)
# __contains__
assert True == (1 in ls)
assert True is (1 in ls)
# get
assert 1 == ls[0]
assert 2 == ls[1]
# del
del ls[0]
assert 1 == len(ls)
assert False == (1 in ls)
assert False is (1 in ls)
# for in
for x in ls:
assert 2 == x
Expand Down
3 changes: 0 additions & 3 deletions cssutils/tests/test_value.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,11 @@ def test_cssText(self):
'u\\rl(a)': 'url(a)',
'url("a")': 'url(a)',
'url( "a" )': 'url(a)',
'url(a)': 'url(a)',
'url(";")': 'url(";")',
'url(",")': 'url(",")',
'url(")")': 'url(")")',
'''url("'")''': '''url("'")''',
'''url('"')''': '''url("\\"")''',
'''url("'")''': '''url("'")''',
# operator
'1': '1',
'1 2': '1 2',
Expand Down Expand Up @@ -665,7 +663,6 @@ def test_cssText(self):
'x(/**/1)': ('x(/**/ 1)', 'x(1)'),
'x(/**/1/**/)': ('x(/**/ 1 /**/)', 'x(1)'),
'x(/**/1,x/**/)': ('x(/**/ 1, x /**/)', 'x(1, x)'),
'x(1,2)': ('x(1, 2)', None),
}
for f, (cssText, value) in list(tests.items()):
if value is None:
Expand Down

0 comments on commit 4f82c10

Please sign in to comment.