Show More
@@ -139,8 +139,10 b' def replacetokens(tokens, opts):' | |||||
139 | # components touching docstrings need to handle unicode, |
|
139 | # components touching docstrings need to handle unicode, | |
140 | # unfortunately. |
|
140 | # unfortunately. | |
141 | if s[0:3] in ("'''", '"""'): |
|
141 | if s[0:3] in ("'''", '"""'): | |
142 | yield adjusttokenpos(t, coloffset) |
|
142 | # If it's assigned to something, it's not a docstring | |
143 | continue |
|
143 | if not _isop(i - 1, '='): | |
|
144 | yield adjusttokenpos(t, coloffset) | |||
|
145 | continue | |||
144 |
|
146 | |||
145 | # If the first character isn't a quote, it is likely a string |
|
147 | # If the first character isn't a quote, it is likely a string | |
146 | # prefixing character (such as 'b', 'u', or 'r'. Ignore. |
|
148 | # prefixing character (such as 'b', 'u', or 'r'. Ignore. |
General Comments 0
You need to be logged in to leave comments.
Login now