Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 16de01d

Browse files
committed
Attempt to fix list comprehension failure in test_eval_formatter
by adding locals to globals
1 parent 5c08c25 commit 16de01d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

IPython/utils/text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ class EvalFormatter(Formatter):
455455
"""
456456

457457
def get_field(self, name: str, args: Any, kwargs: Any) -> Tuple[Any, str]:
458-
v = eval(name, kwargs)
458+
v = eval(name, kwargs, kwargs)
459459
return v, name
460460

461461
#XXX: As of Python 3.4, the format string parsing no longer splits on a colon

0 commit comments

Comments
 (0)