We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9284640 commit 8bf810dCopy full SHA for 8bf810d
1 file changed
bpython/repl.py
@@ -1178,20 +1178,6 @@ def next_indentation(line, tab_length):
1178
return indentation
1179
1180
1181
-def next_token_inside_string(code_string, inside_string):
1182
- """Given a code string s and an initial state inside_string, return
1183
- whether the next token will be inside a string or not."""
1184
- for token, value in Python3Lexer().get_tokens(code_string):
1185
- if token is Token.String:
1186
- value = value.lstrip("bBrRuU")
1187
- if value in ('"""', "'''", '"', "'"):
1188
- if not inside_string:
1189
- inside_string = value
1190
- elif value == inside_string:
1191
- inside_string = False
1192
- return inside_string
1193
-
1194
1195
def split_lines(tokens):
1196
for (token, value) in tokens:
1197
if not value:
0 commit comments