diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2021-11-23 18:06:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-23 09:06:17 -0800 |
commit | fa7189b480d48407bbfafbbf67b1910430a4dc54 (patch) | |
tree | 6b3b0525740f38f091f09e3f08cf5a3460700311 /lib/spack/spack/package.py | |
parent | 812663de623779c6431e1256b22b6d1f94f108a4 (diff) | |
download | spack-fa7189b480d48407bbfafbbf67b1910430a4dc54.tar.gz spack-fa7189b480d48407bbfafbbf67b1910430a4dc54.tar.bz2 spack-fa7189b480d48407bbfafbbf67b1910430a4dc54.tar.xz spack-fa7189b480d48407bbfafbbf67b1910430a4dc54.zip |
Remove support for Python 2.6 (#27256)
Modifications:
- [x] Removed `centos:6` unit test, adjusted vermin checks
- [x] Removed backport of `collections.OrderedDict`
- [x] Removed backport of `functools.total_ordering`
- [x] Removed Python 2.6 specific skip markers in unit tests
- [x] Fixed a few minor Python 2.6 related TODOs in code
Updating the vendored dependencies will be done in separate PRs
Diffstat (limited to 'lib/spack/spack/package.py')
-rw-r--r-- | lib/spack/spack/package.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/spack/spack/package.py b/lib/spack/spack/package.py index 8e1e81c124..77a881c442 100644 --- a/lib/spack/spack/package.py +++ b/lib/spack/spack/package.py @@ -29,7 +29,6 @@ import types from typing import Any, Callable, Dict, List, Optional # novm import six -from ordereddict_backport import OrderedDict import llnl.util.filesystem as fsys import llnl.util.tty as tty @@ -902,7 +901,7 @@ class PackageBase(six.with_metaclass(PackageMeta, PackageViewMixin, object)): explicitly defined ``url`` argument. So, this list may be empty if a package only defines ``url`` at the top level. """ - version_urls = OrderedDict() + version_urls = collections.OrderedDict() for v, args in sorted(self.versions.items()): if 'url' in args: version_urls[v] = args['url'] |