Skip to content

Commit

Permalink
Remove unnecessary call to smart_str().
Browse files Browse the repository at this point in the history
self.stdout.write calls force_str(), and requires a non-bytes string
before that to e.g. call endswith().
  • Loading branch information
dracos committed Dec 16, 2014
1 parent 6bfaad7 commit 6d1b1b8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mapit/management/commands/mapit_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from django.conf import settings
from django.utils import six
from django.utils.six.moves import input
from django.utils.encoding import smart_str

from mapit.models import Area, Generation, Type, NameType, Country, CodeType
from mapit.management.command_utils import save_polygons, fix_invalid_geos_geometry
Expand Down Expand Up @@ -246,7 +245,7 @@ def verbose(*args):
"Could not find code using code field '%s' - should it be something else? "
"It will be one of these: %s. Specify which with --code_field" % (code_field, choices))

self.stdout.write(smart_str(" looking at '%s'%s" % (name, (' (%s)' % code) if code else '')))
self.stdout.write(" looking at '%s'%s" % (name, (' (%s)' % code) if code else ''))

g = None
if hasattr(feat, 'geom'):
Expand Down

0 comments on commit 6d1b1b8

Please sign in to comment.