Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Strings are no longer treated special
  • Loading branch information
Lukasz Langa
Lukasz Langa committed Dec 31, 2017
commit 08f86007bae1f0df2b4cbf5e76ec46f3c73746ac
3 changes: 1 addition & 2 deletions Include/ast.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ PyAPI_FUNC(mod_ty) PyAST_FromNodeObject(
/* _PyAST_ExprAsUnicode is defined in ast_unparse.c */
PyAPI_FUNC(PyObject *) _PyAST_ExprAsUnicode(
expr_ty e,
int omit_parens,
int omit_string_brackets);
int omit_parens);

#endif /* !Py_LIMITED_API */

Expand Down
5 changes: 1 addition & 4 deletions Lib/test/test_future.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,7 @@ def assertAnnotationEqual(
self, annotation, drop_parens=False, is_tuple=False
):
actual = self.getActual(annotation)
if annotation.startswith("'"):
# strings are passed verbatim
expected = eval(annotation)
elif is_tuple:
if is_tuple:
expected = annotation[1:-1]
else:
expected = annotation
Expand Down
Loading