[tor-commits] [nyx/master] Drop MenuItem's str method
atagar at torproject.org
atagar at torproject.org
Sat Aug 27 18:23:50 UTC 2016
commit e9484fbb8a522d9f4cfe9d289ac6fa6cb0fa2eb3
Author: Damian Johnson <atagar at 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):
"""
More information about the tor-commits
mailing list