Revert "closes bpo-27494: Fix 2to3 handling of trailing comma after a generator expression (GH-3771)" (#8241)

This reverts commit af810b35b4.

This is not valid syntax (see bpo-32012).
This commit is contained in:
Serhiy Storchaka 2018-07-31 09:34:30 +03:00 committed by GitHub
parent ac20e0f98d
commit 4b8a7f51da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 12 additions and 36 deletions

View file

@ -612,13 +612,6 @@ class TestLiterals(GrammarTest):
self.validate(s)
class TestGeneratorExpressions(GrammarTest):
def test_trailing_comma_after_generator_expression_argument_works(self):
# BPO issue 27494
self.validate("set(x for x in [],)")
def diff_texts(a, b, filename):
a = a.splitlines()
b = b.splitlines()