mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-17 16:14:12 +08:00
remove some old parameters from Parser and FastTokenizer
This commit is contained in:
@@ -148,6 +148,7 @@ tabsize = 8
|
||||
|
||||
|
||||
def source_tokens(source, line_offset=0):
|
||||
"""Generate tokens from a the source code (string)."""
|
||||
source = source + '\n' # end with \n, because the parser needs it
|
||||
readline = StringIO(source).readline
|
||||
return generate_tokens(readline, line_offset)
|
||||
|
||||
Reference in New Issue
Block a user