[PATCH 2/2] Remove the commented lines for the CapsLock warning

Vratislav Podzimek vpodzime at redhat.com
Thu Jun 6 12:25:47 UTC 2013


They won't be needed, because the GtkEntry widget handles that on its own.

Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
 pyanaconda/ui/gui/spokes/password.py | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/password.py b/pyanaconda/ui/gui/spokes/password.py
index f181cf7..4cb5af1 100644
--- a/pyanaconda/ui/gui/spokes/password.py
+++ b/pyanaconda/ui/gui/spokes/password.py
@@ -19,6 +19,7 @@
 # Red Hat Author(s): Jesse Keating <jkeating at redhat.com>
 #
 
+# pylint: disable-msg=E0611
 from gi.repository import Gtk
 
 from pyanaconda.i18n import _, N_
@@ -71,18 +72,9 @@ class PasswordSpoke(FirstbootSpokeMixIn, NormalSpoke):
         self.pw_label = self.builder.get_object("password_label")
 
     def refresh(self):
-#        self.setCapsLockLabel()
         self.pw.grab_focus()
         self._checkPassword()
 
-# Caps lock detection isn't hooked up right now
-#    def setCapsLockLabel(self):
-#        if isCapsLockEnabled():
-#            self.capslock.set_text("<b>" + _("Caps Lock is on.") + "</b>")
-#            self.capslock.set_use_markup(True)
-#        else:
-#            self.capslock..set_text("")
-
     @property
     def status(self):
         if self._error:
-- 
1.7.11.7



More information about the anaconda-patches mailing list