forked from psf/black
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
don't strip brackets before e.g. lsqb (psf#1575)
it's not safe to remove brackets that are followed by an operator with lower precedence than PERCENT
- Loading branch information
1 parent
b59a524
commit 5b5e65f
Showing
3 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
("" % a)[0] | ||
# output | ||
("" % a)[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters