py3: use unicode literals (#42801)

This commit is contained in:
Benjamin Dauvergne 2020-05-12 21:53:51 +02:00
parent 015552d53c
commit 6190f941ad
1 changed files with 3 additions and 1 deletions

View File

@ -15,6 +15,8 @@
# 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/>.
from __future__ import unicode_literals
import functools
import json
@ -91,7 +93,7 @@ class Command(BaseCommand):
for content in contents:
locality = content.get(
"locality",
{"name": "Collectivité par défaut".decode("utf8"), "slug": "default"},
{"name": "Collectivité par défaut", "slug": "default"},
)
self.info("Locality %s" % locality["name"], ending=" ")