Skip to content

Commit 3adb698

Browse files
committed
Fix function's documentation
1 parent f03464c commit 3adb698

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

microdata.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@
1313

1414
def get_items(location, encoding='UTF-8'):
1515
"""
16-
Pass in a file or file-like object and get a list of Items present in the
16+
Pass in a string or file-like object and get a list of Items present in the
1717
HTML document.
1818
"""
1919
dom_builder = html5lib.treebuilders.getTreeBuilder("dom")
2020
parser = html5lib.HTMLParser(tree=dom_builder)
21-
21+
2222
if (sys.version_info.major == 3):
2323
tree = parser.parse(location)
2424
else:
2525
tree = parser.parse(location, encoding=encoding)
26-
26+
2727
return _find_items(tree)
2828

2929

0 commit comments

Comments
 (0)