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.
else..pass
1 parent 84b7afd commit fa43a62Copy full SHA for fa43a62
src/distro/distro.py
@@ -1056,12 +1056,10 @@ def _parse_os_release_content(lines: TextIO) -> Dict[str, str]:
1056
# stripped, etc.), so the tokens are now either:
1057
# * variable assignments: var=value
1058
# * commands or their arguments (not allowed in os-release)
1059
+ # Ignore any tokens that are not variable assignments
1060
if "=" in token:
1061
k, v = token.split("=", 1)
1062
props[k.lower()] = v
- else:
1063
- # Ignore any tokens that are not variable assignments
1064
- pass
1065
1066
if "version" in props:
1067
# extract release codename (if any) from version attribute
0 commit comments