We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57c8cba commit 3c1261aCopy full SHA for 3c1261a
tests/test_fix_unicode.py
@@ -7,6 +7,7 @@
7
b = U"\\u2041"
8
c = ur'''blah
9
foo'''
10
+import sys
11
"""
12
13
UNICODE_LITERALS_six = """\
@@ -16,16 +17,26 @@
16
17
b = six.u("\\u2041")
18
c = six.u(r'''blah
19
foo''')
20
21
22
-UNICODE_LITERALS_compat = UNICODE_LITERALS
23
+UNICODE_LITERALS_compat = """\
24
+from __future__ import absolute_import
25
+a = u''
26
+b = U"\\u2041"
27
+c = ur'''blah
28
+foo'''
29
30
+"""
31
32
UNICODE_LITERALS_future = """\
33
34
from __future__ import unicode_literals
35
a = ''
36
b = "\\u2041"
37
c = r'''blah
38
39
40
41
42
def test_unicode_six():
0 commit comments