Skip to content

Commit

Permalink
Replaced OrderedDicts with dicts (not needed >=Py3.6).
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Yeo committed Sep 2, 2020
1 parent e6a11c9 commit b6735f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/iris/src/sphinxext/generate_logo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 = {}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b6735f2

Please sign in to comment.