summaryrefslogtreecommitdiffstats
path: root/Lib/test/tokenize_tests.txt
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-11-12 17:40:10 (GMT)
committerGuido van Rossum <guido@python.org>2007-11-12 17:40:10 (GMT)
commit4fe72f9b03f92f126bec69d79ca3e9e09018c988 (patch)
tree7c12e90de06c635e220852dad053ae2848c1a746 /Lib/test/tokenize_tests.txt
parent1607278c2612275d21354619c6ef1e2869178ba7 (diff)
downloadcpython-4fe72f9b03f92f126bec69d79ca3e9e09018c988.zip
cpython-4fe72f9b03f92f126bec69d79ca3e9e09018c988.tar.gz
cpython-4fe72f9b03f92f126bec69d79ca3e9e09018c988.tar.bz2
Patch 1420 by Ron Adam.
This adds support for bytes literals (b'...') to tokenize.py, and removes support for unicode literals (u'...').
Diffstat (limited to 'Lib/test/tokenize_tests.txt')
-rw-r--r--Lib/test/tokenize_tests.txt20
1 files changed, 10 insertions, 10 deletions
diff --git a/Lib/test/tokenize_tests.txt b/Lib/test/tokenize_tests.txt
index 30e7a8d..06c83b0 100644
--- a/Lib/test/tokenize_tests.txt
+++ b/Lib/test/tokenize_tests.txt
@@ -110,19 +110,19 @@ y = r"""foo
bar \\ baz
""" + R'''spam
'''
-x = u'abc' + U'ABC'
-y = u"abc" + U"ABC"
-x = ur'abc' + Ur'ABC' + uR'ABC' + UR'ABC'
-y = ur"abc" + Ur"ABC" + uR"ABC" + UR"ABC"
-x = ur'\\' + UR'\\'
-x = ur'\'' + ''
-y = ur'''
+x = b'abc' + B'ABC'
+y = b"abc" + B"ABC"
+x = br'abc' + Br'ABC' + bR'ABC' + BR'ABC'
+y = br"abc" + Br"ABC" + bR"ABC" + BR"ABC"
+x = br'\\' + BR'\\'
+x = br'\'' + ''
+y = br'''
foo bar \\
-baz''' + UR'''
+baz''' + BR'''
foo'''
-y = Ur"""foo
+y = Br"""foo
bar \\ baz
-""" + uR'''spam
+""" + bR'''spam
'''
# Indentation