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 Feb 27, 2022
1 parent 14d0310 commit 85d2b50
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 85d2b50

Please sign in to comment.