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>
This commit is contained in:
Ed Bartosh
2016-06-02 13:12:55 +03:00
committed by Richard Purdie
parent ecc91840bf
commit d1421dfbd2

View File

@@ -49,7 +49,7 @@ class Line(metaclass=ABCMeta):
def __init__(self, line):
self.line = line
self.generated_line = ""
self.prio = sys.maxint
self.prio = sys.maxsize
self.discard = False
@abstractmethod
@@ -154,7 +154,7 @@ class InputLine(Line):
try:
self.prio = int(props["prio"])
except KeyError:
self.prio = sys.maxint
self.prio = sys.maxsize
def gen(self, context = None):
try:
@@ -1284,7 +1284,7 @@ class InputLineGroup(InputLine):
def __init__(self, codeline):
InputLine.__init__(self, {}, "", 0)
self.group = []
self.prio = sys.maxint
self.prio = sys.maxsize
self.group.append(codeline)
def append(self, line):