Blame libnmstate/nm/common.py

Packit Service 0535c1
#
Packit Service 0535c1
# Copyright (c) 2020 Red Hat, Inc.
Packit Service 0535c1
#
Packit Service 0535c1
# This file is part of nmstate
Packit Service 0535c1
#
Packit Service 0535c1
# This program is free software: you can redistribute it and/or modify
Packit Service 0535c1
# it under the terms of the GNU Lesser General Public License as published by
Packit Service 0535c1
# the Free Software Foundation, either version 2.1 of the License, or
Packit Service 0535c1
# (at your option) any later version.
Packit Service 0535c1
#
Packit Service 0535c1
# This program is distributed in the hope that it will be useful,
Packit Service 0535c1
# but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 0535c1
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service 0535c1
# GNU Lesser General Public License for more details.
Packit Service 0535c1
#
Packit Service 0535c1
# You should have received a copy of the GNU Lesser General Public License
Packit Service 0535c1
# along with this program. If not, see <https://www.gnu.org/licenses/>.
Packit Service 0535c1
#
Packit Service 0535c1
Packit Service 0535c1
import gi
Packit Service 0535c1
Packit Service 0535c1
try:
Packit Service 0535c1
    gi.require_version("NM", "1.0")  # NOQA: F402
Packit Service 0535c1
    from gi.repository import NM  # pylint: disable=no-name-in-module
Packit Service 0535c1
except ValueError:
Packit Service 0535c1
    NM = None
Packit Service 0535c1
Packit Service 0535c1
from gi.repository import GLib
Packit Service 0535c1
from gi.repository import GObject
Packit Service 0535c1
from gi.repository import Gio
Packit Service 0535c1
Packit Service 0535c1
Packit Service 0535c1
# To suppress the "import not used" error
Packit Service 0535c1
NM
Packit Service 0535c1
GLib
Packit Service 0535c1
GObject
Packit Service 0535c1
Gio