From 472513f06d175b2202ee8f542b508f476a6530ec Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sat, 17 Nov 2018 17:58:22 +0000 Subject: [PATCH] Assume Python 3 and write string without u prefix Python 3 is well established. We can write example string literals without the u prefix. --- README.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.rst b/README.rst index b6a2bda0..d4a5a49c 100644 --- a/README.rst +++ b/README.rst @@ -53,26 +53,26 @@ In order to make your models versioned you need two things: content = sa.Column(sa.UnicodeText) - article = Article(name=u'Some article', content=u'Some content') + article = Article(name='Some article', content='Some content') session.add(article) session.commit() # article has now one version stored in database article.versions[0].name - # u'Some article' + # 'Some article' - article.name = u'Updated name' + article.name = 'Updated name' session.commit() article.versions[1].name - # u'Updated name' + # 'Updated name' # lets revert back to first version article.versions[0].revert() article.name - # u'Some article' + # 'Some article' Resources