Upgrading project from Django 1.11 to 2.1

28 views
Skip to first unread message

Mike Dewhirst

unread,
Feb 11, 2019, 1:51:01 AM2/11/19
to Django users
Is it safe/advisable to globally replace

six.text_types(
with
str(

Thanks

Mike

PARTH PATIL

unread,
Feb 11, 2019, 2:00:40 AM2/11/19
to Django users
Six.text_types is used to represent unicode() in python2 and str in python3.
And now you are only using python3, it would be safe to replace it with str()

Mike Dewhirst

unread,
Feb 11, 2019, 3:04:06 AM2/11/19
to django...@googlegroups.com
On 11/02/2019 6:00 pm, PARTH PATIL wrote:
> Six.text_types is used to represent unicode() in python2 and str in python3.
> And now you are only using python3, it would be safe to replace it with str()
>

Thank you kind Sir!

Mike

Reply all
Reply to author
Forward
0 new messages