Remove the u function and u literals

This commit is contained in:
Dave Halter
2020-07-24 01:39:03 +02:00
parent 020b2861df
commit 164489cf97
11 changed files with 49 additions and 66 deletions

View File

@@ -8,12 +8,11 @@ However the tests might still be relevant for the parser.
from textwrap import dedent
from parso._compatibility import u
from parso import parse
def test_carriage_return_splitting():
source = u(dedent('''
source = dedent('''
@@ -21,7 +20,7 @@ def test_carriage_return_splitting():
class Foo():
pass
'''))
''')
source = source.replace('\n', '\r\n')
module = parse(source)
assert [n.value for lst in module.get_used_names().values() for n in lst] == ['Foo']