From 6504da9524d36114e218a7713cc4a865124fc67c Mon Sep 17 00:00:00 2001 From: Jason Mehring Date: Thu, 18 Dec 2014 08:54:46 -0500 Subject: [PATCH] qubes: changed a test for None from == None to is None Conflicts: qubes/__init__.py --- qubes/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubes/__init__.py b/qubes/__init__.py index e741b035..06b6db0a 100644 --- a/qubes/__init__.py +++ b/qubes/__init__.py @@ -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)