py3: use unicode literals (#42801)
This commit is contained in:
parent
015552d53c
commit
6190f941ad
|
@ -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=" ")
|
||||
|
|
Loading…
Reference in New Issue