Skip to content

Commit ddcdd39

Browse files
vuzdemavcrobinso
authored andcommitted
urlfetcher: Make check_output call compatible with Python 3.6
Fixes: virt-manager#291 The `text=` keyword was added in Python 3.7 "as a more readable alias for `universal_newlines=`". This commit switches to the old form of the name, for backwards compatibility with Python 3.6, the default Python3 version on Ubuntu 18.04 and RHEL 8. When support for Python 3.6 is no longer needed, this change can be reverted.
1 parent 0953e1a commit ddcdd39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

virtinst/install/urlfetcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def _make_file_list(self):
3333

3434
log.debug("Generating iso filelist: %s", cmd)
3535
output = subprocess.check_output(cmd,
36-
stderr=subprocess.DEVNULL, text=True)
36+
stderr=subprocess.DEVNULL, universal_newlines=True)
3737
return output.split(delim, 1)[1].strip().splitlines()
3838

3939
def grabFile(self, url, scratchdir):

0 commit comments

Comments
 (0)