fix some pylint

virtManager/createvm.py:982:8: W0128: Redeclared variable 'ignore' in assignment (redeclared-assigned-name)

tests/uitests/lib/app.py:12:0: C0411: third party import "from gi.repository import Gio" should be placed before "import dogtail.rawinput" (wrong-import-order)

Signed-off-by: Chen Hanxiao <chenhx.fnst@cn.fujitsu.com>
This commit is contained in:
Chen Hanxiao 2020-09-15 07:29:11 -04:00 committed by Cole Robinson
parent a242894182
commit 3238594028
2 changed files with 2 additions and 2 deletions

View File

@ -7,9 +7,9 @@ import subprocess
import sys
import time
from gi.repository import Gio
import dogtail.rawinput
import dogtail.tree
from gi.repository import Gio
from virtinst import log
import tests.utils

View File

@ -979,7 +979,7 @@ class vmmCreateVM(vmmGObjectUI):
self.widget("summary-cpu").set_text(cpu)
self._populate_summary_storage()
ignore, nsource, ignore = self._netlist.get_network_selection()
ignore0, nsource, ignore1 = self._netlist.get_network_selection()
expand = not nsource
if expand:
self.widget("advanced-expander").set_expanded(True)