summaryrefslogtreecommitdiffstats
path: root/scripts/lib/bsp
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-06-02 13:12:55 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-03 13:13:31 +0100
commitd1421dfbd2136d7c87824b383eaba9fb8ec3a926 (patch)
treec8d6ca5ac99568d773922a50494465da58537d10 /scripts/lib/bsp
parentecc91840bfe37f2ff549cce931b98a4d7e37f193 (diff)
downloadpoky-d1421dfbd2136d7c87824b383eaba9fb8ec3a926.tar.gz
engine.py: python3: rename sys.maxint to sys.maxsize
Renamed sys.maxint -> sys.maxsize as sys.maxint doesn't exist in python 3. (From meta-yocto rev: b165be8c7f6d44c03bc76dd25c2b9e4cb54bb65a) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/bsp')
-rw-r--r--scripts/lib/bsp/engine.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/lib/bsp/engine.py b/scripts/lib/bsp/engine.py
index 5b4948635e..03bd66ecef 100644
--- a/scripts/lib/bsp/engine.py
+++ b/scripts/lib/bsp/engine.py
@@ -49,7 +49,7 @@ class Line(metaclass=ABCMeta):
49 def __init__(self, line): 49 def __init__(self, line):
50 self.line = line 50 self.line = line
51 self.generated_line = "" 51 self.generated_line = ""
52 self.prio = sys.maxint 52 self.prio = sys.maxsize
53 self.discard = False 53 self.discard = False
54 54
55 @abstractmethod 55 @abstractmethod
@@ -154,7 +154,7 @@ class InputLine(Line):
154 try: 154 try:
155 self.prio = int(props["prio"]) 155 self.prio = int(props["prio"])
156 except KeyError: 156 except KeyError:
157 self.prio = sys.maxint 157 self.prio = sys.maxsize
158 158
159 def gen(self, context = None): 159 def gen(self, context = None):
160 try: 160 try:
@@ -1284,7 +1284,7 @@ class InputLineGroup(InputLine):
1284 def __init__(self, codeline): 1284 def __init__(self, codeline):
1285 InputLine.__init__(self, {}, "", 0) 1285 InputLine.__init__(self, {}, "", 0)
1286 self.group = [] 1286 self.group = []
1287 self.prio = sys.maxint 1287 self.prio = sys.maxsize
1288 self.group.append(codeline) 1288 self.group.append(codeline)
1289 1289
1290 def append(self, line): 1290 def append(self, line):