pycodestyle: fix all E124 warnings

Fix all E124:
     Closing bracket does not match visual indentation

   Also remove ignore options of E124

Signed-off-by: Chen Hanxiao <chenhanxiao@gmail.com>
This commit is contained in:
Chen Hanxiao 2017-09-07 17:03:04 +08:00 committed by Chen Hanxiao
parent ec266d3cda
commit 04e35b2d85
5 changed files with 68 additions and 72 deletions

View File

@ -10,7 +10,6 @@ format = pylint
# E122: Continuation line missing indentation or outdented
# E123: Closing bracket does not match indentation of opening
# bracket's line
# E124: Closing bracket does not match visual indentation
# E125: Continuation line with same indent as next logical line
# E126: Continuation line over-indented for hanging indent
# E127: Continuation line over-indented for visual indent
@ -28,4 +27,4 @@ format = pylint
# E741: Do not use variables named l, O, or I
ignore = E122, E123, E124, E125, E126, E127, E128, E129, E221, E241, E301, E303, E305, E306, E402, E501, E741
ignore = E122, E123, E125, E126, E127, E128, E129, E221, E241, E301, E303, E305, E306, E402, E501, E741

View File

@ -43,23 +43,22 @@ from .baseclass import vmmGObjectUI
from .addstorage import vmmAddStorage
(PAGE_ERROR,
PAGE_DISK,
PAGE_CONTROLLER,
PAGE_NETWORK,
PAGE_INPUT,
PAGE_GRAPHICS,
PAGE_SOUND,
PAGE_HOSTDEV,
PAGE_CHAR,
PAGE_VIDEO,
PAGE_WATCHDOG,
PAGE_FILESYSTEM,
PAGE_SMARTCARD,
PAGE_USBREDIR,
PAGE_TPM,
PAGE_RNG,
PAGE_PANIC,
) = range(0, 17)
PAGE_DISK,
PAGE_CONTROLLER,
PAGE_NETWORK,
PAGE_INPUT,
PAGE_GRAPHICS,
PAGE_SOUND,
PAGE_HOSTDEV,
PAGE_CHAR,
PAGE_VIDEO,
PAGE_WATCHDOG,
PAGE_FILESYSTEM,
PAGE_SMARTCARD,
PAGE_USBREDIR,
PAGE_TPM,
PAGE_RNG,
PAGE_PANIC) = range(0, 17)
class vmmAddHardware(vmmGObjectUI):

View File

@ -46,69 +46,67 @@ from .graphwidgets import Sparkline
# Parameters that can be edited in the details window
(EDIT_NAME,
E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X_LISTEN,
EDIT_GFX_ADDRESS,
EDIT_GFX_TLSPORT,
EDIT_GFX_PORT,
EDIT_GFX_OPENGL,
EDIT_GFX_RENDERNODE,
EDIT_VIDEO_MODEL,
EDIT_VIDEO_3D,
EDIT_VIDEO_MODEL,
EDIT_VIDEO_3D,
EDIT_WATCHDOG_MODEL,
EDIT_WATCHDOG_ACTION,
EDIT_WATCHDOG_MODEL,
EDIT_WATCHDOG_ACTION,
EDIT_CONTROLLER_MODEL,
EDIT_CONTROLLER_MODEL,
EDIT_TPM_TYPE,
EDIT_TPM_TYPE,
EDIT_FS,
EDIT_FS,
EDIT_HOSTDEV_ROMBAR,
) = range(1, 49)
EDIT_HOSTDEV_ROMBAR) = range(1, 49)
# Columns in hw list model

View File

@ -472,7 +472,7 @@ class vmmSnapshotPage(vmmGObjectUI):
def _validate_new_snapshot(self):
name = self.widget("snapshot-new-name").get_text()
desc = self.widget("snapshot-new-description"
).get_buffer().get_property("text")
).get_buffer().get_property("text")
try:
newsnap = DomainSnapshot(self.vm.conn.get_backend())

View File

@ -681,17 +681,17 @@ class GenericDistro(Distro):
_xen_paths = [("images/xen/vmlinuz",
"images/xen/initrd.img"), # Fedora
]
]
_hvm_paths = [("images/pxeboot/vmlinuz",
"images/pxeboot/initrd.img"), # Fedora
("ppc/ppc64/vmlinuz",
"ppc/ppc64/initrd.img"), # CenOS 7 ppc64le
]
]
_iso_paths = ["images/boot.iso", # RH/Fedora
"boot/boot.iso", # Suse
"current/images/netboot/mini.iso", # Debian
"install/images/boot.iso", # Mandriva
]
]
# Holds values to use when actually pulling down media
_valid_kernel_path = None