mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-08 20:30:16 +00:00
Prefer sys.maxsize to sys.maxint.
This commit is contained in:
parent
7507e84a18
commit
13cd780231
@ -499,13 +499,13 @@ if __name__ == '__main__':
|
|||||||
mode = "upload"
|
mode = "upload"
|
||||||
if len(sys.argv) > 1:
|
if len(sys.argv) > 1:
|
||||||
mode = sys.argv[1]
|
mode = sys.argv[1]
|
||||||
if sys.maxint == 2147483647:
|
if sys.maxsize == 2147483647:
|
||||||
bits = "32"
|
bits = "32"
|
||||||
elif sys.maxint == 9223372036854775807:
|
elif sys.maxsize == 9223372036854775807:
|
||||||
bits = "64"
|
bits = "64"
|
||||||
else:
|
else:
|
||||||
bits = "?"
|
bits = "?"
|
||||||
print("%s-bit system (sys.maxint=%d)" % (bits, sys.maxint))
|
print("%s-bit system (sys.maxsize=%d)" % (bits, sys.maxsize))
|
||||||
# put the logfile and stats.out in _test_memory/ . These stick around.
|
# put the logfile and stats.out in _test_memory/ . These stick around.
|
||||||
# put the nodes and other files in _test_memory/test/ . These are
|
# put the nodes and other files in _test_memory/test/ . These are
|
||||||
# removed each time we run.
|
# removed each time we run.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user