From f9620eb43d8b97b249b908d06591399b05f167a6 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Wed, 27 Sep 2023 23:40:18 +0200 Subject: =?UTF-8?q?=E2=80=98not=20x=20in=20xs=E2=80=99=20=E2=86=92=20?= =?UTF-8?q?=E2=80=98x=20not=20in=20xs=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gis-observation-map | 8 ++++---- 1 file 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') -- cgit v1.2.3