diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2014-06-02 20:59:28 +0300 |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2014-06-02 20:59:28 +0300 |
commit | e49b7e02b2150413d2e78db709277fae0887be46 (patch) | |
tree | 6c39946f2b4aca080c75274f97ec263f793ae012 /mediagoblin/auth/tools.py | |
parent | a80c74bbcc6ac0208cfef725a441810a29876cff (diff) | |
download | mediagoblin-e49b7e02b2150413d2e78db709277fae0887be46.tar.lz mediagoblin-e49b7e02b2150413d2e78db709277fae0887be46.tar.xz mediagoblin-e49b7e02b2150413d2e78db709277fae0887be46.zip |
Use six.text_type instead of unicode().
I will be switch to use ``from __future__ import unicode_literals`` later.
Diffstat (limited to 'mediagoblin/auth/tools.py')
-rw-r--r-- | mediagoblin/auth/tools.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mediagoblin/auth/tools.py b/mediagoblin/auth/tools.py index 88716e1c..8c919498 100644 --- a/mediagoblin/auth/tools.py +++ b/mediagoblin/auth/tools.py @@ -16,6 +16,8 @@ import logging + +import six import wtforms from sqlalchemy import or_ @@ -140,7 +142,7 @@ def register_user(request, register_form): user.save() # log the user in - request.session['user_id'] = unicode(user.id) + request.session['user_id'] = six.text_type(user.id) request.session.save() # send verification email |