Skip to content

Commit

Permalink
Import only for newer versions
Browse files Browse the repository at this point in the history
  • Loading branch information
nachovizzo committed Jul 29, 2024
1 parent c6d2c94 commit d764759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ament_black/ament_black/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
from xml.sax.saxutils import escape
from xml.sax.saxutils import quoteattr

from black import find_project_root
from black import get_sources
from black import main as black
from black import re_compile_maybe_verbose
Expand Down Expand Up @@ -97,6 +96,7 @@ def main(argv=sys.argv[1:]):
stdin_filename='',
)
else:
from black import find_project_root
sources = get_sources(
root=find_project_root(tuple(args.paths))[0],
src=tuple(args.paths),
Expand Down

0 comments on commit d764759

Please sign in to comment.