diff options
author | Guido Günther <agx@sigxcpu.org> | 2014-04-22 12:34:12 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2014-04-22 13:34:43 +0200 |
commit | 162aac994118c7e240530fdf4a652dbb2f35ac10 (patch) | |
tree | 854aa8e0c7c8e9566d95d3309d05f0cc1ce72828 /whatmaps/process.py | |
parent | c8fa189693ec797d6d329f7c1b5ceeecda930574 (diff) |
Use 'open' instead of 'file'
since the later doesn't exist in python3
Diffstat (limited to 'whatmaps/process.py')
-rw-r--r-- | whatmaps/process.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/whatmaps/process.py b/whatmaps/process.py index 3fe23f3..f3d5dcd 100644 --- a/whatmaps/process.py +++ b/whatmaps/process.py @@ -53,7 +53,7 @@ class Process(object): def _read_maps(self): """Read the SOs from /proc/<pid>/maps""" try: - f = file(self._procpath('%d/maps' % self.pid)) + f = open(self._procpath('%d/maps' % self.pid)) except IOError as e: # ignore killed process if e.errno != errno.ENOENT: |