summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-16 01:05:52 +0200
committerhut <hut@lavabit.com>2010-04-16 01:05:52 +0200
commitf8e3b704d2f468336e8efc93f50c268b992a1ed1 (patch)
tree30b409d1334df43d4b59a967c1d4c186a00ad573 /ranger
parentf97a310b32e4975777b83cbe54755d4b4268b8a6 (diff)
downloadranger-f8e3b704d2f468336e8efc93f50c268b992a1ed1.tar.gz
console: bugfix
Diffstat (limited to 'ranger')
-rw-r--r--ranger/gui/widgets/console.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/gui/widgets/console.py b/ranger/gui/widgets/console.py
index 35e0b844..c81c66b5 100644
--- a/ranger/gui/widgets/console.py
+++ b/ranger/gui/widgets/console.py
@@ -118,7 +118,7 @@ class Console(Widget):
 		if prompt is not None:
 			assert isinstance(prompt, str)
 			self.prompt = prompt
-		elif hasattr(self, 'prompt'):
+		elif 'prompt' in self.__dict__:
 			del self.prompt
 
 		cls = mode_to_class(mode)