about summary refs log tree commit diff stats
path: root/ranger/gui/displayable.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-02-28 17:06:24 +0100
committerhut <hut@lavabit.com>2010-02-28 19:21:32 +0100
commit3d625436fc5284c38fcfe054396d98dcb7495a0d (patch)
tree787743f45f7061c74587cbad6a98c3bad07862d6 /ranger/gui/displayable.py
parent811b7c282fdb3032659626190b936c3365fa4dc1 (diff)
downloadranger-3d625436fc5284c38fcfe054396d98dcb7495a0d.tar.gz
fixed __nonzero__ compatibility problem
__nonzero__ was renamed to __bool__ in python3
Diffstat (limited to 'ranger/gui/displayable.py')
-rw-r--r--ranger/gui/displayable.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ranger/gui/displayable.py b/ranger/gui/displayable.py
index 53dc7abe..ceefb3f1 100644
--- a/ranger/gui/displayable.py
+++ b/ranger/gui/displayable.py
@@ -84,6 +84,7 @@ class Displayable(EnvironmentAware, FileManagerAware, CursesShortcuts):
 	def __nonzero__(self):
 		"""Always True"""
 		return True
+	__bool__ = __nonzero__
 
 	def __contains__(self, item):
 		"""