Show More
@@ -558,9 +558,7 b' class FullEvalFormatter(Formatter):' | |||||
558 | """ |
|
558 | """ | |
559 | # copied from Formatter._vformat with minor changes to allow eval |
|
559 | # copied from Formatter._vformat with minor changes to allow eval | |
560 | # and replace the format_spec code with slicing |
|
560 | # and replace the format_spec code with slicing | |
561 |
def |
|
561 | def vformat(self, format_string, args, kwargs): | |
562 | if recursion_depth < 0: |
|
|||
563 | raise ValueError('Max string recursion exceeded') |
|
|||
564 | result = [] |
|
562 | result = [] | |
565 | for literal_text, field_name, format_spec, conversion in \ |
|
563 | for literal_text, field_name, format_spec, conversion in \ | |
566 | self.parse(format_string): |
|
564 | self.parse(format_string): |
General Comments 0
You need to be logged in to leave comments.
Login now