From b6735f2809b698ca95e15842b1fa45abc55b7ab0 Mon Sep 17 00:00:00 2001 From: Martin Yeo Date: Wed, 26 Aug 2020 08:49:52 +0100 Subject: [PATCH] Replaced OrderedDicts with dicts (not needed >=Py3.6). --- docs/iris/src/sphinxext/generate_logo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/iris/src/sphinxext/generate_logo.py b/docs/iris/src/sphinxext/generate_logo.py index fea7506a8d7..16c96120471 100644 --- a/docs/iris/src/sphinxext/generate_logo.py +++ b/docs/iris/src/sphinxext/generate_logo.py @@ -9,7 +9,7 @@ Uses XML ElementTree for SVG file editing. """ -from collections import OrderedDict, namedtuple +from collections import namedtuple from copy import deepcopy from io import BytesIO from os import environ @@ -67,7 +67,7 @@ # The elements that are displayed (not just referenced). # Order is important for layering. -artwork_dict = OrderedDict.fromkeys(["background", "glow", "sea", "land",]) +artwork_dict = dict.fromkeys(["background", "glow", "sea", "land",]) # The elements that will just be referenced by artwork elements. defs_dict = {} @@ -101,7 +101,7 @@ LAND.geometries = lambda: iter(simple_geometries) # Variable that will store the sequence of land-shaped SVG clips for each longitude. -land_clips = OrderedDict() +land_clips = {} # Create a sequence of longitude values. central_longitude = -30