This patch fixes the following syntax errors caught by pychecker:
iw/lvm_dialog_gui.py:1024: Invalid arguments to (createSuggestedVGName), got 1,
expected 2
iw/welcome_gui.py:67: No global (sys) found
textw/network_text.py:75: No global (herrors) found
textw/welcome_text.py:44: No global (sys) found
I choose to rename neterrors to herrors, instead of replacing the use of the
undefined herrors with neterrors, to make things identical between textmode and
gui mode, to avoid copy and paste errors like this one in the future.
if not hostname:
ButtonChoiceWindow(_("Error with Hostname"),
@@ -68,7 +68,7 @@ class HostnameWindow:
buttons = [ _("OK") ])
continue
- if neterrors is not None:
+ if herrors is not None:
ButtonChoiceWindow(_("Error with Hostname"),
_("The hostname "%s" is not valid for the "
"following reason:
%s")
diff --git a/textw/welcome_text.py b/textw/welcome_text.py
index c0f771d..bf58b58 100644
--- a/textw/welcome_text.py
+++ b/textw/welcome_text.py
@@ -20,6 +20,7 @@
from snack import *
from constants_text import *
from constants import *
+import sys
import gettext
_ = lambda x: gettext.ldgettext("anaconda", x)
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list