Disable pylint warnings about gi.repository

Since pylint still can't handle the dynamic nature of gobject
introspection.
This commit is contained in:
Cole Robinson 2013-04-11 17:16:33 -04:00
parent 986014ec49
commit 9515a8575d
38 changed files with 77 additions and 5 deletions

View File

@ -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

View File

@ -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,

View File

@ -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

View File

@ -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):
"""

View File

@ -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):

View File

@ -18,7 +18,9 @@
# MA 02110-1301 USA.
#
# pylint: disable=E0611
from gi.repository import GObject
# pylint: enable=E0611
import logging

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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,

View File

@ -18,7 +18,9 @@
# MA 02110-1301 USA.
#
# pylint: disable=E0611
from gi.repository import GObject
# pylint: enable=E0611
import logging
import os

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -18,7 +18,9 @@
# MA 02110-1301 USA.
#
# pylint: disable=E0611
from gi.repository import GObject
# pylint: enable=E0611
import logging
import time

View File

@ -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

View File

@ -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

View File

@ -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):

View File

@ -17,7 +17,9 @@
# MA 02110-1301 USA.
#
# pylint: disable=E0611
from gi.repository import GObject
# pylint: enable=E0611
import logging
import os

View File

@ -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

View File

@ -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")

View File

@ -18,7 +18,9 @@
# MA 02110-1301 USA.
#
# pylint: disable=E0611
from gi.repository import GObject
# pylint: enable=E0611
import difflib
import logging

View File

@ -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

View File

@ -18,7 +18,9 @@
# MA 02110-1301 USA.
#
# pylint: disable=E0611
from gi.repository import GObject
# pylint: enable=E0611
import logging
import time

View File

@ -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

View File

@ -18,7 +18,9 @@
# MA 02110-1301 USA.
#
# pylint: disable=E0611
from gi.repository import Gtk
# pylint: enable=E0611
import dbus

View File

@ -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

View File

@ -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

View File

@ -20,8 +20,10 @@
import logging
# pylint: disable=E0611
from gi.repository import GObject
from gi.repository import Gtk
# pylint: enable=E0611
import virtinst

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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: