Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2243e5e

Browse filesBrowse files
committed
Merged revisions 81479 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ................ r81479 | benjamin.peterson | 2010-05-22 13:52:21 -0500 (Sat, 22 May 2010) | 13 lines 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 ........ ................
1 parent b1d8e32 commit 2243e5e
Copy full SHA for 2243e5e

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed

‎Lib/lib2to3/refactor.py

Copy file name to clipboardExpand all lines: Lib/lib2to3/refactor.py
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,9 @@ def parse_block(self, block, lineno, indent):
564564
This is necessary to get correct line number / offset information
565565
in the parser diagnostics and embedded into the parse tree.
566566
"""
567-
return self.driver.parse_tokens(self.wrap_toks(block, lineno, indent))
567+
tree = self.driver.parse_tokens(self.wrap_toks(block, lineno, indent))
568+
tree.future_features = frozenset()
569+
return tree
568570

569571
def wrap_toks(self, block, lineno, indent):
570572
"""Wraps a tokenize stream to systematically modify start/end."""

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.