qubes: changed a test for None from == None to is None

Conflicts:
	qubes/__init__.py
This commit is contained in:
Jason Mehring 2014-12-18 08:54:46 -05:00 committed by Wojtek Porczyk
parent eaace1e05c
commit 6504da9524

View File

@ -100,7 +100,7 @@ class VMMConnection(object):
if 'xen.lowlevel.cs' in sys.modules:
self._xc = xen.lowlevel.xc.xc()
self._libvirt_conn = libvirt.open(defaults['libvirt_uri'])
if self._libvirt_conn == None:
if self._libvirt_conn is None:
raise QubesException("Failed connect to libvirt driver")
libvirt.registerErrorHandler(self._libvirt_error_handler, None)
atexit.register(self._libvirt_conn.close)