Skip to content

Commit d530a51

Browse files
Daniel NunesUtumno
authored andcommitted
Fix usage of maxint for py3
sys.maxint does not exist in py3 but maxsize is equally as huge and exists in both 2 and 3.
1 parent e6e9305 commit d530a51

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Mopy/bash/load_order.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def cached_lo_index_or_max(mod):
211211
try:
212212
return cached_lo_index(mod)
213213
except KeyError:
214-
return sys.maxint # sort mods that do not have a load order LAST
214+
return sys.maxsize # sort mods that do not have a load order LAST
215215

216216
def cached_active_index(mod): return cached_lord.activeIndex(mod)
217217

0 commit comments

Comments
 (0)