mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
Disable pylint warnings about gi.repository
Since pylint still can't handle the dynamic nature of gobject introspection.
This commit is contained in:
parent
986014ec49
commit
9515a8575d
@ -27,8 +27,10 @@ import signal
|
||||
import sys
|
||||
import traceback
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import GObject
|
||||
from gi.repository import LibvirtGLib
|
||||
# pylint: enable=E0611
|
||||
|
||||
from virtcli import cliutils, cliconfig
|
||||
|
||||
@ -235,7 +237,7 @@ def main():
|
||||
origargs = " ".join(sys.argv[:])
|
||||
|
||||
try:
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gtk # pylint: disable=E0611
|
||||
except:
|
||||
# Don't just let the exception raise here. abrt reports bugs
|
||||
# when users mess up su/sudo and DISPLAY isn't set. Printing
|
||||
|
@ -21,8 +21,10 @@
|
||||
import logging
|
||||
import traceback
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gdk
|
||||
# pylint: enable=E0611
|
||||
|
||||
import virtinst
|
||||
from virtinst import (VirtualCharDevice,
|
||||
|
@ -22,9 +22,11 @@ import logging
|
||||
import threading
|
||||
import traceback
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import Gdk
|
||||
from gi.repository import GLib
|
||||
from gi.repository import Gtk
|
||||
# pylint: enable=E0611
|
||||
|
||||
import libvirt
|
||||
import urlgrabber
|
||||
|
@ -22,10 +22,12 @@
|
||||
# MA 02110-1301 USA.
|
||||
#
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import cairo
|
||||
from gi.repository import Gdk
|
||||
from gi.repository import GLib
|
||||
from gi.repository import Gtk
|
||||
# pylint: enable=E0611
|
||||
|
||||
class OverBox(Gtk.Box):
|
||||
"""
|
||||
|
@ -25,11 +25,13 @@ import logging
|
||||
import virtManager
|
||||
import virtManager.guidiff
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import GLib
|
||||
from gi.repository import GObject
|
||||
if virtManager.guidiff.is_gui():
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gdk
|
||||
# pylint: enable=E0611
|
||||
|
||||
|
||||
class vmmGObject(GObject.GObject):
|
||||
|
@ -18,7 +18,9 @@
|
||||
# MA 02110-1301 USA.
|
||||
#
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import GObject
|
||||
# pylint: enable=E0611
|
||||
|
||||
import logging
|
||||
|
||||
|
@ -21,8 +21,10 @@
|
||||
import logging
|
||||
import os
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gdk
|
||||
# pylint: enable=E0611
|
||||
|
||||
from virtManager.baseclass import vmmGObjectUI
|
||||
from virtManager.asyncjob import vmmAsyncJob
|
||||
|
@ -20,8 +20,10 @@
|
||||
import os
|
||||
import logging
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import GConf
|
||||
# pylint: enable=E0611
|
||||
|
||||
import virtinst
|
||||
from virtinst import uriutil
|
||||
|
@ -21,8 +21,10 @@
|
||||
import logging
|
||||
import socket
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import GObject
|
||||
from gi.repository import Gtk
|
||||
# pylint: enable=E0611
|
||||
|
||||
import virtinst
|
||||
import dbus
|
||||
|
@ -18,7 +18,9 @@
|
||||
# MA 02110-1301 USA.
|
||||
#
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import GLib
|
||||
# pylint: enable=E0611
|
||||
|
||||
import logging
|
||||
import os
|
||||
@ -124,7 +126,7 @@ def creds_dialog_main(creds):
|
||||
"""
|
||||
Libvirt openAuth callback for username/password credentials
|
||||
"""
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gtk # pylint: disable=E0611
|
||||
|
||||
dialog = Gtk.Dialog("Authentication required", None, 0,
|
||||
(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL,
|
||||
|
@ -18,7 +18,9 @@
|
||||
# MA 02110-1301 USA.
|
||||
#
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import GObject
|
||||
# pylint: enable=E0611
|
||||
|
||||
import logging
|
||||
import os
|
||||
|
@ -20,12 +20,14 @@
|
||||
# MA 02110-1301 USA.
|
||||
#
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import GObject
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gdk
|
||||
from gi.repository import GtkVnc
|
||||
from gi.repository import SpiceClientGtk
|
||||
from gi.repository import SpiceClientGLib
|
||||
# pylint: enable=E0611
|
||||
|
||||
import libvirt
|
||||
|
||||
|
@ -21,9 +21,11 @@
|
||||
import threading
|
||||
import logging
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import GObject
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gdk
|
||||
# pylint: enable=E0611
|
||||
|
||||
import virtinst
|
||||
|
||||
|
@ -18,8 +18,10 @@
|
||||
# MA 02110-1301 USA.
|
||||
#
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gdk
|
||||
# pylint: enable=E0611
|
||||
|
||||
import logging
|
||||
|
||||
|
@ -23,8 +23,10 @@ import re
|
||||
|
||||
import ipaddr
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gdk
|
||||
# pylint: enable=E0611
|
||||
|
||||
from virtManager.network import vmmNetwork
|
||||
from virtManager.baseclass import vmmGObjectUI
|
||||
|
@ -18,8 +18,10 @@
|
||||
# MA 02110-1301 USA.
|
||||
#
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gdk
|
||||
# pylint: enable=E0611
|
||||
|
||||
import copy
|
||||
import logging
|
||||
|
@ -20,9 +20,11 @@
|
||||
|
||||
import logging
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import GObject
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gdk
|
||||
# pylint: enable=E0611
|
||||
|
||||
from virtManager import util
|
||||
from virtManager.baseclass import vmmGObjectUI
|
||||
|
@ -18,8 +18,10 @@
|
||||
# MA 02110-1301 USA.
|
||||
#
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gdk
|
||||
# pylint: enable=E0611
|
||||
|
||||
import os
|
||||
import stat
|
||||
|
@ -21,9 +21,11 @@
|
||||
import logging
|
||||
import traceback
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import GObject
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gdk
|
||||
# pylint: enable=E0611
|
||||
|
||||
import libvirt
|
||||
|
||||
|
@ -18,7 +18,9 @@
|
||||
# MA 02110-1301 USA.
|
||||
#
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import GObject
|
||||
# pylint: enable=E0611
|
||||
|
||||
import logging
|
||||
import time
|
||||
|
@ -18,9 +18,11 @@
|
||||
# MA 02110-1301 USA.
|
||||
#
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import GLib
|
||||
from gi.repository import GObject
|
||||
from gi.repository import Gtk
|
||||
# pylint: enable=E0611
|
||||
|
||||
import logging
|
||||
import threading
|
||||
|
@ -17,7 +17,9 @@
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||||
# MA 02110-1301 USA.
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import Gtk
|
||||
# pylint: enable=E0611
|
||||
|
||||
import logging
|
||||
import traceback
|
||||
|
@ -15,8 +15,10 @@
|
||||
# MA 02110-1301 USA.
|
||||
#
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import GObject
|
||||
from gi.repository import Gtk
|
||||
# pylint: enable=E0611
|
||||
import cairo
|
||||
|
||||
def rect_print(name, rect):
|
||||
|
@ -17,7 +17,9 @@
|
||||
# MA 02110-1301 USA.
|
||||
#
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import GObject
|
||||
# pylint: enable=E0611
|
||||
|
||||
import logging
|
||||
import os
|
||||
|
@ -20,8 +20,10 @@
|
||||
|
||||
import logging
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import GObject
|
||||
from gi.repository import Gtk
|
||||
# pylint: enable=E0611
|
||||
|
||||
from virtinst import VirtualDisk
|
||||
from virtinst import Storage
|
||||
|
@ -21,7 +21,7 @@
|
||||
import logging
|
||||
|
||||
try:
|
||||
from gi.repository import GnomeKeyring
|
||||
from gi.repository import GnomeKeyring # pylint: disable=E0611
|
||||
except:
|
||||
GnomeKeyring = None
|
||||
logging.debug("GnomeKeyring bindings not installed, no keyring support")
|
||||
|
@ -18,7 +18,9 @@
|
||||
# MA 02110-1301 USA.
|
||||
#
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import GObject
|
||||
# pylint: enable=E0611
|
||||
|
||||
import difflib
|
||||
import logging
|
||||
|
@ -21,10 +21,12 @@
|
||||
import logging
|
||||
import re
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import GObject
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gdk
|
||||
from gi.repository import GdkPixbuf
|
||||
# pylint: enable=E0611
|
||||
|
||||
from virtManager import packageutils
|
||||
from virtManager import uihelpers
|
||||
|
@ -18,7 +18,9 @@
|
||||
# MA 02110-1301 USA.
|
||||
#
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import GObject
|
||||
# pylint: enable=E0611
|
||||
|
||||
import logging
|
||||
import time
|
||||
|
@ -22,9 +22,11 @@ import traceback
|
||||
import logging
|
||||
import threading
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import Gdk
|
||||
from gi.repository import GLib
|
||||
from gi.repository import Gtk
|
||||
# pylint: enable=E0611
|
||||
|
||||
import libvirt
|
||||
import virtinst
|
||||
|
@ -18,7 +18,9 @@
|
||||
# MA 02110-1301 USA.
|
||||
#
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import Gtk
|
||||
# pylint: enable=E0611
|
||||
|
||||
import dbus
|
||||
|
||||
|
@ -20,8 +20,10 @@
|
||||
|
||||
import logging
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gdk
|
||||
# pylint: enable=E0611
|
||||
|
||||
from virtManager.baseclass import vmmGObjectUI
|
||||
|
||||
|
@ -25,10 +25,12 @@ import pty
|
||||
import fcntl
|
||||
import logging
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import Gdk
|
||||
from gi.repository import GLib
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Vte
|
||||
# pylint: enable=E0611
|
||||
|
||||
import libvirt
|
||||
|
||||
|
@ -20,8 +20,10 @@
|
||||
|
||||
import logging
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import GObject
|
||||
from gi.repository import Gtk
|
||||
# pylint: enable=E0611
|
||||
|
||||
import virtinst
|
||||
|
||||
|
@ -20,7 +20,9 @@
|
||||
|
||||
import virtinst
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import GObject
|
||||
# pylint: enable=E0611
|
||||
|
||||
from virtManager import util
|
||||
from virtManager.libvirtobject import vmmLibvirtObject
|
||||
|
@ -20,8 +20,10 @@
|
||||
|
||||
import logging
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import GObject
|
||||
from gi.repository import Gtk
|
||||
# pylint: enable=E0611
|
||||
|
||||
from virtManager.baseclass import vmmGObject
|
||||
from virtManager.error import vmmErrorDialog
|
||||
|
@ -22,7 +22,9 @@ import logging
|
||||
import os
|
||||
import statvfs
|
||||
|
||||
# pylint: disable=E0611
|
||||
from gi.repository import Gtk
|
||||
# pylint: enable=E0611
|
||||
|
||||
import virtinst
|
||||
from virtinst import VirtualNetworkInterface
|
||||
|
@ -180,7 +180,7 @@ def browse_local(parent, dialog_name, conn, start_folder=None,
|
||||
value, and store the user chosen path.
|
||||
|
||||
"""
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gtk # pylint: disable=E0611
|
||||
|
||||
# Initial setup
|
||||
overwrite_confirm = False
|
||||
@ -359,7 +359,7 @@ def chkbox_helper(src, getcb, setcb, text1, text2=None,
|
||||
@alwaysrecord: Don't require user to select 'yes' to record chkbox value
|
||||
@default: What value to return if getcb tells us not to prompt
|
||||
"""
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gtk # pylint: disable=E0611
|
||||
|
||||
do_prompt = getcb()
|
||||
if not do_prompt:
|
||||
|
Loading…
Reference in New Issue
Block a user