Skip to content

Commit

Permalink
Merge e6dbb29 into 3b72ed0
Browse files Browse the repository at this point in the history
  • Loading branch information
radek-sprta committed Jan 1, 2019
2 parents 3b72ed0 + e6dbb29 commit 323774c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion black.py
Expand Up @@ -632,7 +632,11 @@ def format_str(
dst_contents = ""
future_imports = get_future_imports(src_node)
is_pyi = bool(mode & FileMode.PYI)
py36 = bool(mode & FileMode.PYTHON36) or is_python36(src_node)
py36 = (
bool(mode & FileMode.PYTHON36)
or "# -*- coding: future_fstrings -*-" not in src_contents
and is_python36(src_node)
)
normalize_strings = not bool(mode & FileMode.NO_STRING_NORMALIZATION)
normalize_fmt_off(src_node)
lines = LineGenerator(
Expand Down

0 comments on commit 323774c

Please sign in to comment.