+3
-3
lines changedFilter options
+3
-3
lines changed Original file line number Diff line number Diff line change
@@ -345,7 +345,7 @@ def parse_manifest_json(content):
345
345
for node in description.childNodes:
346
346
# Remove the namespace prefix from the tag for comparison
347
347
entry = node.nodeName.replace(em, "")
348
-
if entry in details.keys():
348
+
if entry in details:
349
349
details.update({entry: get_text(node)})
350
350
if not details.get('id'):
351
351
for i in range(description.attributes.length):
Original file line number Diff line number Diff line change
@@ -160,7 +160,7 @@ def create_matches(options: List[BaseOptions]) -> Dict:
160
160
always[k] = v
161
161
162
162
for i in opts:
163
-
for k in always.keys():
163
+
for k in always:
164
164
del i[k]
165
165
166
166
capabilities["capabilities"]["alwaysMatch"] = always
Original file line number Diff line number Diff line change
@@ -98,7 +98,7 @@ def groups(self) -> Sequence[str]:
98
98
return cls(*rgb)
99
99
elif m.match(HSL_PATTERN, str_) or m.match(HSLA_PATTERN, str_):
100
100
return cls._from_hsl(*m.groups)
101
-
elif str_.upper() in Colors.keys():
101
+
elif str_.upper() in Colors:
102
102
return Colors[str_.upper()]
103
103
else:
104
104
raise ValueError("Could not convert %s into color" % str_)
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4