summaryrefslogtreecommitdiffstats
path: root/tools/parsedeps.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/parsedeps.py')
-rwxr-xr-xtools/parsedeps.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/parsedeps.py b/tools/parsedeps.py
index 9a4fc8e..d36442b 100755
--- a/tools/parsedeps.py
+++ b/tools/parsedeps.py
@@ -4,9 +4,13 @@
from __future__ import print_function
import optparse
-import re
import sys
+try:
+ raw_input
+except NameError:
+ raw_input = input
+
class Dependency:
def __init__(self, tgt):
@@ -45,7 +49,7 @@ class Dependencies:
t.pos = pos
def get(self, tgt):
- if self.lines.has_key(tgt):
+ if tgt in self.lines:
return self.lines[tgt]
else:
return None