Skip to content

Commit

Permalink
minor pylint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksMat committed Jan 26, 2018
1 parent ccff8b9 commit a2a905e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sentinelhub/aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def parse_bands(band_input):
else:
raise ValueError('bands parameter must be a list or a string')
band_list = [band.strip().split('.')[0] for band in band_list]
band_list = [band for band in band_list if band is not '']
band_list = [band for band in band_list if band != '']
if not set(band_list) <= set(AwsConstants.BANDS):
raise ValueError('bands must be a subset of {}'.format(AwsConstants.BANDS))
return band_list
Expand All @@ -85,7 +85,7 @@ def parse_metafiles(self, metafile_input):
else:
raise ValueError('metafiles parameter must be a list or a string')
metafile_list = [metafile.strip().split('.')[0] for metafile in metafile_list]
metafile_list = [metafile for metafile in metafile_list if metafile is not '']
metafile_list = [metafile for metafile in metafile_list if metafile != '']
if not set(metafile_list) <= set(AwsConstants.FILE_FORMATS.keys()):
raise ValueError('metafiles must be a subset of {}'.format(
list(AwsConstants.FILE_FORMATS.keys())))
Expand Down

0 comments on commit a2a905e

Please sign in to comment.