aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xTools/scripts/gnomedepends.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Tools/scripts/gnomedepends.py b/Tools/scripts/gnomedepends.py
index 9cb6268ca1c7..d83173b11326 100755
--- a/Tools/scripts/gnomedepends.py
+++ b/Tools/scripts/gnomedepends.py
@@ -69,7 +69,7 @@ regobj = re.compile('^@dirrm (?P<dirname>\S+).*$')
for portdir in gnomeports:
try:
lines = readfile(os.path.join(portdir, 'pkg-plist'))
- lines = filter(lines, regobj)
+ lines = list(filter(lines, regobj))
if len(lines) > 0:
newgnomeports.append([portdir, lines])
except IOError:
@@ -79,14 +79,14 @@ newgnomeports = []
try:
currplist = readfile('pkg-plist')
-except IOError, errmsg:
- print errmsg
+except IOError as errmsg:
+ print(errmsg)
sys.exit(1)
regobj = re.compile('^(?!@)(?P<dirname>\S+)/.*')
-currdirs = filter(currplist, regobj)
+currdirs = list(filter(currplist, regobj))
regobj = re.compile('^@dirrm (?P<dirname>\S+).*$')
-currdirs.extend(filter(currplist, regobj))
+currdirs.extend(list(filter(currplist, regobj)))
currportdir = os.getcwd()
newcurrdirs = []