From 1caeecaeec50b0f81ab2f9b197afb333b7a313de 2015-11-24 11:56:50 From: Min RK Date: 2015-11-24 11:56:50 Subject: [PATCH] Backport PR #8985: override vformat instead of _vformat in our eval formatters avoids being caught out by changes in private API this needs to be backported in order to support Python 3.4.4 ... --- diff --git a/IPython/utils/text.py b/IPython/utils/text.py index 6cd9955..6f6d811 100644 --- a/IPython/utils/text.py +++ b/IPython/utils/text.py @@ -558,9 +558,7 @@ class FullEvalFormatter(Formatter): """ # copied from Formatter._vformat with minor changes to allow eval # and replace the format_spec code with slicing - def _vformat(self, format_string, args, kwargs, used_args, recursion_depth): - if recursion_depth < 0: - raise ValueError('Max string recursion exceeded') + def vformat(self, format_string, args, kwargs): result = [] for literal_text, field_name, format_spec, conversion in \ self.parse(format_string):