diff options
author | Matthieu Darbois <mayeut@users.noreply.github.com> | 2022-04-15 14:08:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-15 14:08:58 +0200 |
commit | 0f996734bdbd413f7dd8ce88d0c12227045609d1 (patch) | |
tree | f45f9b862a99de444ae1881de2003adc290a1c12 /psutil/_common.py | |
parent | c45af430d3bfb6cbeed9b72c4865bc497fd006f1 (diff) | |
download | psutil-0f996734bdbd413f7dd8ce88d0c12227045609d1.tar.gz |
Drop Python 2.6 support (#2039)
Signed-off-by: mayeut <mayeut@users.noreply.github.com>
Diffstat (limited to 'psutil/_common.py')
-rw-r--r-- | psutil/_common.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/psutil/_common.py b/psutil/_common.py index ef3e8664..9937eb83 100644 --- a/psutil/_common.py +++ b/psutil/_common.py @@ -281,10 +281,7 @@ class Error(Exception): __module__ = 'psutil' def _infodict(self, attrs): - try: - info = collections.OrderedDict() - except AttributeError: # pragma: no cover - info = {} # Python 2.6 + info = collections.OrderedDict() for name in attrs: value = getattr(self, name, None) if value: |