[master 1/1] Fix a type check to work with python 3.

dashea installerbot-noreply at redhat.com
Wed Jun 10 18:38:38 UTC 2015


From: David Shea <dshea at redhat.com>

---
 pyanaconda/nm.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/pyanaconda/nm.py b/pyanaconda/nm.py
index 4266667..871eab7 100644
--- a/pyanaconda/nm.py
+++ b/pyanaconda/nm.py
@@ -23,7 +23,6 @@
 from gi.repository import NetworkManager
 import struct
 import socket
-import types
 import logging
 log = logging.getLogger("anaconda")
 
@@ -985,7 +984,7 @@ def _gvariant_settings(settings, updated_key1, updated_key2, value, default_type
 
     if type_str is None:
         # infer the new value type for string and boolean
-        if isinstance(value, types.BooleanType):
+        if isinstance(value, bool):
             type_str = 'b'
         elif isinstance(value, str):
             type_str = 's'


-- 
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/bfc845e9ba3d9eb77d4c6cf7c0d5f5500c670db0


More information about the anaconda-patches mailing list