diff options
author | Ryan Petrello <lists@ryanpetrello.com> | 2013-04-30 13:06:10 -0400 |
---|---|---|
committer | Ryan Petrello <lists@ryanpetrello.com> | 2013-04-30 13:06:10 -0400 |
commit | e59d8bddcf7e742971576e94c07df54a2ad32ea7 (patch) | |
tree | 0ed778dd69997efaba5b1290e07d7986ab004edb | |
parent | 055696cca4f9be66b5e8cf2753a84bb2ae708830 (diff) | |
download | pecan-e59d8bddcf7e742971576e94c07df54a2ad32ea7.tar.gz |
Remove unicode markers.
-rw-r--r-- | pecan/jsonify.py | 4 | ||||
-rw-r--r-- | pecan/tests/test_jsonify.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/pecan/jsonify.py b/pecan/jsonify.py index 7fbd492..5bd4c0f 100644 --- a/pecan/jsonify.py +++ b/pecan/jsonify.py @@ -66,8 +66,8 @@ class GenericJSON(JSONEncoder): the entire resultset data, returns the list in a dictionary along with the resultset "row" count. - .. note:: {'count': 5, 'rows': [(u'Ed Jones',), (u'Pete Jones',), - (u'Wendy Williams',), (u'Mary Contrary',), (u'Fred Smith',)]} + .. note:: {'count': 5, 'rows': [('Ed Jones',), ('Pete Jones',), + ('Wendy Williams',), ('Mary Contrary',), ('Fred Smith',)]} * SQLAlchemy RowProxy objects Casts the RowProxy cursor object into a dictionary, probably diff --git a/pecan/tests/test_jsonify.py b/pecan/tests/test_jsonify.py index 1c1c589..f87ae4a 100644 --- a/pecan/tests/test_jsonify.py +++ b/pecan/tests/test_jsonify.py @@ -203,8 +203,8 @@ class TestJsonifySQLAlchemyGenericEncoder(PecanTestCase): # add some dummy data user_table.insert().execute([ - {'first_name': u'Jonathan', 'last_name': u'LaCour'}, - {'first_name': u'Yoann', 'last_name': u'Roman'} + {'first_name': 'Jonathan', 'last_name': 'LaCour'}, + {'first_name': 'Yoann', 'last_name': 'Roman'} ]) # get the SA objects |