parent
649c3c7a05
commit
7145fa325c
@ -953,6 +953,8 @@ More details can be found in [CONTRIBUTING](CONTRIBUTING.md).
|
|||||||
* cache is now populated when `--check` is successful for a file which speeds up
|
* cache is now populated when `--check` is successful for a file which speeds up
|
||||||
consecutive checks of properly formatted unmodified files (#448)
|
consecutive checks of properly formatted unmodified files (#448)
|
||||||
|
|
||||||
|
* whitespace at the beginning of the file is now removed (#399)
|
||||||
|
|
||||||
* fixed mangling [pweave](http://mpastell.com/pweave/) and
|
* fixed mangling [pweave](http://mpastell.com/pweave/) and
|
||||||
[Spyder IDE](https://pythonhosted.org/spyder/) special comments (#532)
|
[Spyder IDE](https://pythonhosted.org/spyder/) special comments (#532)
|
||||||
|
|
||||||
|
2
black.py
2
black.py
@ -625,7 +625,7 @@ def format_str(
|
|||||||
|
|
||||||
`line_length` determines how many characters per line are allowed.
|
`line_length` determines how many characters per line are allowed.
|
||||||
"""
|
"""
|
||||||
src_node = lib2to3_parse(src_contents)
|
src_node = lib2to3_parse(src_contents.lstrip())
|
||||||
dst_contents = ""
|
dst_contents = ""
|
||||||
future_imports = get_future_imports(src_node)
|
future_imports = get_future_imports(src_node)
|
||||||
is_pyi = bool(mode & FileMode.PYI)
|
is_pyi = bool(mode & FileMode.PYI)
|
||||||
|
Loading…
Reference in New Issue
Block a user