Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a type check to work with python 3. #133

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions pyanaconda/nm.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
from gi.repository import NetworkManager
import struct
import socket
import types
import logging
log = logging.getLogger("anaconda")

Expand Down Expand Up @@ -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'
Expand Down