From 39aef3aeb9dbade6c914a42fb2232042982b3cc1 Mon Sep 17 00:00:00 2001 From: Bob Farrell Date: Fri, 27 Jun 2008 17:05:41 +0100 Subject: [PATCH] rpartition changed to rsplit for 2.4 compat --- bpython.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bpython.py b/bpython.py index f067827..478af94 100644 --- a/bpython.py +++ b/bpython.py @@ -415,7 +415,7 @@ class Repl( object ): self.list_win.erase() if items and '.' in items[0]: - items = [ x.rpartition('.')[2] for x in items ] + items = [ x.rsplit('.')[-1] for x in items ] if topline: height_offset = self.mkargspec(topline, down) + 1