We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc1fb8a commit 53a031dCopy full SHA for 53a031d
distro.py
@@ -1106,7 +1106,7 @@ def _lsb_release_info(self):
1106
"""
1107
if not self.include_lsb:
1108
return {}
1109
- with open(os.devnull, "w") as devnull:
+ with open(os.devnull, "wb") as devnull:
1110
try:
1111
cmd = ("lsb_release", "-a")
1112
stdout = subprocess.check_output(cmd, stderr=devnull)
@@ -1144,7 +1144,7 @@ def _parse_lsb_release_content(lines):
1144
@cached_property
1145
def _uname_info(self):
1146
# type: () -> Dict[str, str]
1147
1148
1149
cmd = ("uname", "-rs")
1150
0 commit comments