summaryrefslogtreecommitdiff
path: root/psutil/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'psutil/__init__.py')
-rw-r--r--psutil/__init__.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/psutil/__init__.py b/psutil/__init__.py
index d2f35b68..2f2a593d 100644
--- a/psutil/__init__.py
+++ b/psutil/__init__.py
@@ -17,7 +17,7 @@ sensors) in Python. Supported platforms:
- Sun Solaris
- AIX
-Works with Python versions from 2.6 to 3.4+.
+Works with Python versions 2.7 and 3.4+.
"""
from __future__ import division
@@ -380,10 +380,7 @@ class Process(object):
self._ident = (self.pid, self._create_time)
def __str__(self):
- try:
- info = collections.OrderedDict()
- except AttributeError: # pragma: no cover
- info = {} # Python 2.6
+ info = collections.OrderedDict()
info["pid"] = self.pid
if self._name:
info['name'] = self._name