We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fbfe61 commit 1198abaCopy full SHA for 1198aba
html5lib/trie/_base.py
@@ -11,7 +11,8 @@ def keys(self, prefix=None):
11
if prefix is None:
12
return set(keys)
13
14
- return {x for x in keys if x.startswith(prefix)}
+ # Python 2.6: no set comprehensions
15
+ return set([x for x in keys if x.startswith(prefix)])
16
17
def has_keys_with_prefix(self, prefix):
18
for key in self.keys():
0 commit comments