Skip to content

Commit 8bf810d

Browse files
committed
Remove unused function
1 parent 9284640 commit 8bf810d

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

bpython/repl.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,20 +1178,6 @@ def next_indentation(line, tab_length):
11781178
return indentation
11791179

11801180

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-
11951181
def split_lines(tokens):
11961182
for (token, value) in tokens:
11971183
if not value:

0 commit comments

Comments
 (0)