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 9c6e8c4 commit 5fa98cbCopy full SHA for 5fa98cb
extruct/uniform.py
@@ -9,8 +9,8 @@ def _uopengraph(extracted):
9
# Ensuring that never empty value is returned if there is a duplicated
10
# property with non empty value
11
non_empty_props = {k for k, v in properties if v and v.strip()}
12
- flattened = dict((k, v) for k, v in properties
13
- if k not in non_empty_props or (v and v.strip()))
+ flattened = {k: v for k, v in properties
+ if k not in non_empty_props or (v and v.strip())}
14
t = flattened.pop('og:type', None)
15
if t:
16
flattened['@type'] = t
0 commit comments