From 162aac994118c7e240530fdf4a652dbb2f35ac10 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Tue, 22 Apr 2014 12:34:12 +0200 Subject: Use 'open' instead of 'file' since the later doesn't exist in python3 --- whatmaps/process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'whatmaps/process.py') 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//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: -- cgit v1.2.3