Show More
@@ -78,9 +78,19 b' def replacetokens(tokens, opts):' | |||||
78 | already been done. |
|
78 | already been done. | |
79 |
|
79 | |||
80 | """ |
|
80 | """ | |
81 |
|
|
81 | k = j | |
82 | if st.type == token.STRING and st.string.startswith(("'", '"')): |
|
82 | currtoken = tokens[k] | |
83 | sysstrtokens.add(st) |
|
83 | while currtoken.type in (token.STRING, token.NEWLINE, tokenize.NL): | |
|
84 | k += 1 | |||
|
85 | if ( | |||
|
86 | currtoken.type == token.STRING | |||
|
87 | and currtoken.string.startswith(("'", '"')) | |||
|
88 | ): | |||
|
89 | sysstrtokens.add(currtoken) | |||
|
90 | try: | |||
|
91 | currtoken = tokens[k] | |||
|
92 | except IndexError: | |||
|
93 | break | |||
84 |
|
94 | |||
85 | coldelta = 0 # column increment for new opening parens |
|
95 | coldelta = 0 # column increment for new opening parens | |
86 | coloffset = -1 # column offset for the current line (-1: TBD) |
|
96 | coloffset = -1 # column offset for the current line (-1: TBD) |
General Comments 0
You need to be logged in to leave comments.
Login now