summaryrefslogtreecommitdiff
path: root/psutil/_common.py
diff options
context:
space:
mode:
authorMatthieu Darbois <mayeut@users.noreply.github.com>2022-04-15 14:08:58 +0200
committerGitHub <noreply@github.com>2022-04-15 14:08:58 +0200
commit0f996734bdbd413f7dd8ce88d0c12227045609d1 (patch)
treef45f9b862a99de444ae1881de2003adc290a1c12 /psutil/_common.py
parentc45af430d3bfb6cbeed9b72c4865bc497fd006f1 (diff)
downloadpsutil-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.py5
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: