
27 Aug
2016
27 Aug
'16
6:23 p.m.
commit e9484fbb8a522d9f4cfe9d289ac6fa6cb0fa2eb3 Author: Damian Johnson <atagar@torproject.org> Date: Thu Aug 11 09:06:42 2016 -0700 Drop MenuItem's str method Unused from what I can tell, and callers should just get the label if they want this. --- nyx/menu.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/nyx/menu.py b/nyx/menu.py index d1e0f97..aae2cdb 100644 --- a/nyx/menu.py +++ b/nyx/menu.py @@ -120,9 +120,6 @@ class MenuItem(object): else: raise ValueError("Menu option '%s' doesn't have a parent" % self) - def __str__(self): - return self.label - class Submenu(MenuItem): """