Skip to content

Commit e3d12e1

Browse files
committed
privatise check_future_import
1 parent 7de4cff commit e3d12e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libmodernize/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
__version__ = "0.8.1.dev0"
99

1010

11-
def check_future_import(node):
11+
def _check_future_import(node):
1212
"""If this is a future import, return set of symbols that are imported,
1313
else return None."""
1414
# node should be the import statement here
@@ -64,7 +64,7 @@ def add_future(node, symbol):
6464
):
6565
# skip over docstring
6666
continue
67-
names = check_future_import(node)
67+
names = _check_future_import(node)
6868
if not names:
6969
# not a future statement; need to insert before this
7070
break

0 commit comments

Comments
 (0)