Python3 - Change sys.maxint to sys.maxsize.
Python3 has no analogue to sys.maxint since ints in Python 3 have
arbitrary size. However, the distinction was not actually important
in any of these cases, and in a few cases using maxint was already
a bug to begin with.
llvm-svn: 251306
diff --git a/lldb/test/lldbcurses.py b/lldb/test/lldbcurses.py
index aeb4c46..81ad92a 100644
--- a/lldb/test/lldbcurses.py
+++ b/lldb/test/lldbcurses.py
@@ -421,7 +421,7 @@
self.timeout(timeout_msec)
return c
- def key_event_loop(self, timeout_msec=-1, n=sys.maxint):
+ def key_event_loop(self, timeout_msec=-1, n=sys.maxsize):
'''Run an event loop to receive key presses and pass them along to the
responder chain.
@@ -974,7 +974,7 @@
self.add_key_action(curses.KEY_ENTER, self.perform_action, "Select the next menu item")
self.add_key_action(10, self.perform_action, "Select the next menu item")
- def insert_menu(self, menu, index=sys.maxint):
+ def insert_menu(self, menu, index=sys.maxsize):
if index >= len(self.menus):
self.menus.append(menu)
else: