Skip to content

Commit

Permalink
Merge pull request #145 from EdwardBetts/spelling
Browse files Browse the repository at this point in the history
Correct spelling mistakes
  • Loading branch information
kmike committed Aug 28, 2020
2 parents bd49a5f + 1611781 commit 205ee73
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ v0.5.0 (2018-06-08)
html nodes.
* ``base_url`` substitutes ``url`` in ``MicroformatExtractor``, ``JsonLdExtractor``,
``OpenGraphExtractor``, ``RDFaExtractor`` and ``MicrodataExtractor``
* individual extractors accpet ``base_url`` instead of ``url``, unused keyword
* individual extractors accept ``base_url`` instead of ``url``, unused keyword
arguments are removed.
* In ``w3microdata.extract_items`` ``items_seen`` and ``url`` are no longer
class variables but are passed as arguments.
Expand Down Expand Up @@ -152,7 +152,7 @@ v0.2.0 (2016-09-26)
-------------------

* Web service response content-type set to 'application/json'
* Web service Python 3 compatiblity
* Web service Python 3 compatibility
* Code coverage reports
* Fix extraction of ``<object>`` "data" URL with microdata
* Handle textContent mixed with ``<script>`` and ``<style>`` tags
Expand Down
2 changes: 1 addition & 1 deletion extruct/rdfa.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def _replaceNS(self, prop, html_element, head_element):
if ('xmlns:' + prefix) in html_element.keys():
return html_element.get('xmlns:' + prefix) + prop.split(':')[1]

# if namespace present in inital context
# if namespace present in initial context
if prefix in context:
return context[prefix] + prop.split(':')[1]

Expand Down
2 changes: 1 addition & 1 deletion extruct/w3cmicrodata.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def _extract_property_refs(self, node, refid, items_seen, base_url):
base_url=base_url)
if 'itemprop' in ref_node.keys() and 'itemscope' in ref_node.keys():
# An full item will be extracted from the node, no need to look
# for individual properties in childs
# for individual properties in child nodes
for p, v in extract_fn(ref_node):
yield p, v
else:
Expand Down

0 comments on commit 205ee73

Please sign in to comment.