Grammar modifications so that the Python2.7 grammar looks more like the Python 3.4 grammar.

This commit is contained in:
Dave Halter
2015-01-13 01:05:13 +01:00
parent 09da6ec0d3
commit cc64265187
4 changed files with 11 additions and 8 deletions

View File

@@ -27,7 +27,7 @@ asdfasdf""" + "h"
def test_simple_no_whitespace(self):
# Test a simple one line string, no preceding whitespace
simple_docstring = '"""simple one line docstring"""'
simple_docstring = u'"""simple one line docstring"""'
simple_docstring_io = StringIO(simple_docstring)
tokens = parser.tokenize.generate_tokens(simple_docstring_io.readline)
token_list = list(tokens)