We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f03464c commit 3adb698Copy full SHA for 3adb698
1 file changed
microdata.py
@@ -13,17 +13,17 @@
13
14
def get_items(location, encoding='UTF-8'):
15
"""
16
- Pass in a file or file-like object and get a list of Items present in the
+ Pass in a string or file-like object and get a list of Items present in the
17
HTML document.
18
19
dom_builder = html5lib.treebuilders.getTreeBuilder("dom")
20
parser = html5lib.HTMLParser(tree=dom_builder)
21
-
+
22
if (sys.version_info.major == 3):
23
tree = parser.parse(location)
24
else:
25
tree = parser.parse(location, encoding=encoding)
26
27
return _find_items(tree)
28
29
0 commit comments