mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-12 04:15:06 -05:00
Use "exec" instead of "execfile" (deprecated in Python 3).
This was the only compatibility issue reported by "python2 -3". Signed-off-by: Jeremy Heiner <ScalaProtractor at gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
372e26118f
commit
4d24da8cda
@ -100,7 +100,8 @@ class pmtest(object):
|
||||
if os.path.isfile(self.name):
|
||||
# all tests expect this to be available
|
||||
from pmpkg import pmpkg
|
||||
execfile(self.name)
|
||||
with open(self.name) as input:
|
||||
exec(input.read(),locals())
|
||||
else:
|
||||
raise IOError("file %s does not exist!" % self.name)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user