From 7eea945f61b28724387d892b44f387b6d833d242 2009-04-08 01:22:53 From: Fernando Perez Date: 2009-04-08 01:22:53 Subject: [PATCH] Use len and str from builtins in computing dynamic prompts. Closes: https://bugs.launchpad.net/bugs/355837 --- diff --git a/IPython/Prompts.py b/IPython/Prompts.py index 89b8d2a..343fb1e 100644 --- a/IPython/Prompts.py +++ b/IPython/Prompts.py @@ -128,7 +128,7 @@ prompt_specials_color = { r'\N': '${self.cache.prompt_count}', # Prompt/history count, with the actual digits replaced by dots. Used # mainly in continuation prompts (prompt_in2) - r'\D': '${"."*len(str(self.cache.prompt_count))}', + r'\D': '${"."*__builtins__.len(__builtins__.str(self.cache.prompt_count))}', # Current working directory r'\w': '${os.getcwd()}', # Current time