From 93c77ca1f9b3e583342fbb8fc05cd690288a1027 Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Wed, 17 Jan 2024 15:13:51 +0100 Subject: [PATCH] fix --- lib/python/pyflyby/_autoimp.py | 1 + lib/python/pyflyby/_parse.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/python/pyflyby/_autoimp.py b/lib/python/pyflyby/_autoimp.py index 01d21382..61f8a8e3 100644 --- a/lib/python/pyflyby/_autoimp.py +++ b/lib/python/pyflyby/_autoimp.py @@ -5,6 +5,7 @@ import ast +import builtins import contextlib import copy import six diff --git a/lib/python/pyflyby/_parse.py b/lib/python/pyflyby/_parse.py index 552ce29c..6ee6730f 100644 --- a/lib/python/pyflyby/_parse.py +++ b/lib/python/pyflyby/_parse.py @@ -1251,7 +1251,7 @@ def string_literals(self): Iterable of ``ast.Str`` or ``ast.Bytes`` nodes """ for node in _walk_ast_nodes_in_order(self.annotated_ast_node): - if _is_ast_str_or_byte(ast_node): + if _is_ast_str_or_byte(node): assert hasattr(node, 'startpos') yield node