##// END OF EJS Templates
override vformat instead of _vformat...
Min RK -
Show More
@@ -540,9 +540,7 b' class FullEvalFormatter(Formatter):'
540 """
540 """
541 # copied from Formatter._vformat with minor changes to allow eval
541 # copied from Formatter._vformat with minor changes to allow eval
542 # and replace the format_spec code with slicing
542 # and replace the format_spec code with slicing
543 def _vformat(self, format_string, args, kwargs, used_args, recursion_depth):
543 def vformat(self, format_string, args, kwargs):
544 if recursion_depth < 0:
545 raise ValueError('Max string recursion exceeded')
546 result = []
544 result = []
547 for literal_text, field_name, format_spec, conversion in \
545 for literal_text, field_name, format_spec, conversion in \
548 self.parse(format_string):
546 self.parse(format_string):
General Comments 0
You need to be logged in to leave comments. Login now