Skip to content

Commit

Permalink
'Refactored by Sourcery'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sourcery AI authored and akaihola committed Apr 5, 2022
1 parent c961767 commit 9ed96ee
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/darker/linewise_black.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ def format_str_to_chunks( # pylint: disable=too-many-locals
"""
src_node = lib2to3_parse(src_contents.lstrip(), mode.target_versions)
future_imports = get_future_imports(src_node)
if mode.target_versions:
versions = mode.target_versions
else:
versions = detect_target_versions(src_node)
versions = mode.target_versions or detect_target_versions(src_node)
normalize_fmt_off(src_node)
lines = LineGenerator(
mode=mode,
Expand Down

0 comments on commit 9ed96ee

Please sign in to comment.