##// END OF EJS Templates
byteify-strings: handle triple quoted strings if they are not docstrings...
Raphaël Gomès -
r42905:e9592e11 default
parent child Browse files
Show More
@@ -139,6 +139,8 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 # If it's assigned to something, it's not a docstring
143 if not _isop(i - 1, '='):
142 yield adjusttokenpos(t, coloffset)
144 yield adjusttokenpos(t, coloffset)
143 continue
145 continue
144
146
General Comments 0
You need to be logged in to leave comments. Login now