Skip to content

Commit

Permalink
use != instead of is not. Mappername default changed to None would be…
Browse files Browse the repository at this point in the history
… better.
  • Loading branch information
mortenwh authored and akorosov committed Jan 5, 2023
1 parent e9e2d3d commit 1508463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nansat/nansat.py
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ def _get_mapper(self, mappername, **kwargs):
tmp_vrt = None

# TODO: There seems to be code repetition in this if-test - should be avoided...
if mappername is not '':
if mappername != '':
# If a specific mapper is requested, we test only this one.
# get the module name
mappername = 'mapper_' + mappername.replace('mapper_', '').replace('.py', '').lower()
Expand Down

0 comments on commit 1508463

Please sign in to comment.