-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bytes strings being treated as docstrings
Fixes #4002 I think this only fixes crashes so it doesn't need to go through the preview style, but not 100% sure.
- Loading branch information
1 parent
f7cbe4a
commit 8163f2d
Showing
4 changed files
with
43 additions
and
2 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
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,34 @@ | ||
def bitey(): | ||
b" not a docstring" | ||
|
||
def bitey2(): | ||
b' also not a docstring' | ||
|
||
def triple_quoted_bytes(): | ||
b""" not a docstring""" | ||
|
||
def triple_quoted_bytes2(): | ||
b''' also not a docstring''' | ||
|
||
def capitalized_bytes(): | ||
B" NOT A DOCSTRING" | ||
|
||
# output | ||
def bitey(): | ||
b" not a docstring" | ||
|
||
|
||
def bitey2(): | ||
b" also not a docstring" | ||
|
||
|
||
def triple_quoted_bytes(): | ||
b""" not a docstring""" | ||
|
||
|
||
def triple_quoted_bytes2(): | ||
b""" also not a docstring""" | ||
|
||
|
||
def capitalized_bytes(): | ||
b" NOT A DOCSTRING" |
File renamed without changes.