[COMMIT osv master] fixed NameError: name 'file' is not defined

3 views
Skip to first unread message

Commit Bot

unread,
Apr 19, 2021, 12:28:51 AM4/19/21
to osv...@googlegroups.com, Inacio Klassmann
From: Inacio Klassmann <inaciok...@gmail.com>
Committer: Inacio Klassmann <inaciok...@gmail.com>
Branch: master

fixed NameError: name 'file' is not defined

---
diff --git a/scripts/run.py b/scripts/run.py
--- a/scripts/run.py
+++ b/scripts/run.py
@@ -499,7 +499,7 @@ def choose_hypervisor(external_networking, arch):
if os.path.exists('/dev/kvm') and arch == host_arch:
return 'kvm'
if (os.path.exists('/proc/xen/capabilities')
- and 'control_d' in file('/proc/xen/capabilities').read()
+ and 'control_d' in open('/proc/xen/capabilities', 'r').read()
and external_networking):
return 'xen'
return 'qemu'
Reply all
Reply to author
Forward
0 new messages