Skip to content

Commit

Permalink
minor: add requested explainatory comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Knebel committed Jul 24, 2018
1 parent bb4b424 commit 305a4a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mf2py/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,14 @@ def handle_microformat(root_class_names, el, value_property=None,
if not backcompat_mode:
# stop implied name if any p-*, e-*, h-* is already found
if "name" not in properties and parsed_types_aggregation.isdisjoint("peh"):

properties["name"] = [implied_properties.name(el, base_url=self.__url__)]

if "photo" not in properties:
x = implied_properties.photo(el, self.dict_class, self.__img_with_alt__, base_url=self.__url__)
if x is not None:
properties["photo"] = [x]

# stop implied url if any u-* or h-* is already found
if "url" not in properties and parsed_types_aggregation.isdisjoint("uh"):
x = implied_properties.url(el, base_url=self.__url__)
if x is not None:
Expand Down

0 comments on commit 305a4a4

Please sign in to comment.