Use six.text_type instead of unicode().

I will be switch to use ``from __future__ import unicode_literals`` later.
This commit is contained in:
Berker Peksag
2014-06-02 20:59:28 +03:00
parent a80c74bbcc
commit e49b7e02b2
36 changed files with 151 additions and 84 deletions

View File

@@ -13,6 +13,9 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import six
from mediagoblin import mg_globals, messages
from mediagoblin.auth.tools import register_user
from mediagoblin.db.models import User
@@ -40,7 +43,7 @@ def login(request):
if user:
# set up login in session
request.session['user_id'] = unicode(user.id)
request.session['user_id'] = six.text_type(user.id)
request.session.save()
if request.form.get('next'):