mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Merged revisions 80937,81478 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3 ........ r80937 | benjamin.peterson | 2010-05-07 14:10:58 -0500 (Fri, 07 May 2010) | 1 line remove redundant unicode call ........ r81478 | benjamin.peterson | 2010-05-22 13:47:39 -0500 (Sat, 22 May 2010) | 1 line ensure doctests have some future_features ........
This commit is contained in:
parent
54b40ee929
commit
36cd75ab8d
2 changed files with 4 additions and 2 deletions
|
|
@ -564,7 +564,9 @@ class RefactoringTool(object):
|
|||
This is necessary to get correct line number / offset information
|
||||
in the parser diagnostics and embedded into the parse tree.
|
||||
"""
|
||||
return self.driver.parse_tokens(self.wrap_toks(block, lineno, indent))
|
||||
tree = self.driver.parse_tokens(self.wrap_toks(block, lineno, indent))
|
||||
tree.future_features = frozenset()
|
||||
return tree
|
||||
|
||||
def wrap_toks(self, block, lineno, indent):
|
||||
"""Wraps a tokenize stream to systematically modify start/end."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue