diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2023-09-27 23:40:18 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2023-09-28 00:23:05 +0200 |
commit | f9620eb43d8b97b249b908d06591399b05f167a6 (patch) | |
tree | ca88894eeec13423dfd66c76d65439ae837c7a65 | |
parent | d8cbc8378b103832598af75a303c92742d1e5fad (diff) |
‘not x in xs’ → ‘x not in xs’
-rwxr-xr-x | gis-observation-map | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gis-observation-map b/gis-observation-map index 35a2bd0..62e5642 100755 --- a/gis-observation-map +++ b/gis-observation-map @@ -88,7 +88,7 @@ if args.project_home is not None and args.project_name is not None: projectHome.mkdir(mode=0o755, exist_ok=True) projectPath = projectHome.joinpath(args.project_name) - if not projectPath.suffix in ['.qgs', '.qgz']: + if projectPath.suffix not in ['.qgs', '.qgz']: projectPath = projectPath.with_suffix('.qgz') if projectPath.exists(): raise Exception(f'{projectPath}: file exists') @@ -467,10 +467,10 @@ def getTaxonLists(): raise Exception(f'missing taxon #{i} (in {d0}) from directives {",".join(directives)}') for d in directives: for i in taxonLists2[d]: - if not i in taxonLists2[d0]: + if i not in taxonLists2[d0]: raise Exception(f'missing taxon #{i} (in {d}) from {d0}') for i in taxonLists2['Natura2000HabitatsDirectiveArticle2PrioritySpecie']: - if not i in taxonLists2['Natura2000HabitatsDirectiveArticle2']: + if i not in taxonLists2['Natura2000HabitatsDirectiveArticle2']: raise Exception(f'missing taxon #{i} (in Natura2000HabitatsDirectiveArticle2PrioritySpecie) from Natura2000HabitatsDirectiveArticle2') getTaxonList(taxonLists, taxonLists2, 'BirdDirective', 'Birds Directive') @@ -485,7 +485,7 @@ def getTaxonLists(): # raise Exception(f'missing taxon #{i} (in {d0}) from directives {",".join(directives)}') for d in directives: for i in taxonLists2[d]: - if not i in taxonLists2[d0]: + if i not in taxonLists2[d0]: raise Exception(f'missing taxon #{i} (in {d}) from {d0}') i = getTaxonList(taxonLists, taxonLists2, 'TaxonIsRedlisted', 'Redlisted species') |