mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
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:
committed by
Richard Purdie
parent
ecc91840bf
commit
d1421dfbd2
@@ -49,7 +49,7 @@ class Line(metaclass=ABCMeta):
|
|||||||
def __init__(self, line):
|
def __init__(self, line):
|
||||||
self.line = line
|
self.line = line
|
||||||
self.generated_line = ""
|
self.generated_line = ""
|
||||||
self.prio = sys.maxint
|
self.prio = sys.maxsize
|
||||||
self.discard = False
|
self.discard = False
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
@@ -154,7 +154,7 @@ class InputLine(Line):
|
|||||||
try:
|
try:
|
||||||
self.prio = int(props["prio"])
|
self.prio = int(props["prio"])
|
||||||
except KeyError:
|
except KeyError:
|
||||||
self.prio = sys.maxint
|
self.prio = sys.maxsize
|
||||||
|
|
||||||
def gen(self, context = None):
|
def gen(self, context = None):
|
||||||
try:
|
try:
|
||||||
@@ -1284,7 +1284,7 @@ class InputLineGroup(InputLine):
|
|||||||
def __init__(self, codeline):
|
def __init__(self, codeline):
|
||||||
InputLine.__init__(self, {}, "", 0)
|
InputLine.__init__(self, {}, "", 0)
|
||||||
self.group = []
|
self.group = []
|
||||||
self.prio = sys.maxint
|
self.prio = sys.maxsize
|
||||||
self.group.append(codeline)
|
self.group.append(codeline)
|
||||||
|
|
||||||
def append(self, line):
|
def append(self, line):
|
||||||
|
|||||||
Reference in New Issue
Block a user