Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau committed Jan 17, 2024
1 parent 88ea35d commit 93c77ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/python/pyflyby/_autoimp.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@


import ast
import builtins
import contextlib
import copy
import six
Expand Down
2 changes: 1 addition & 1 deletion lib/python/pyflyby/_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 93c77ca

Please sign in to comment.