Skip to content

Commit b99abb6

Browse files
committed
Python 3 preparation: use sys.maxsize instead of sys.maxint.
Tool-generated patch.
1 parent 0af821b commit b99abb6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

roundup/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ def str2value(self, value):
11121112
"\"multiple\" then a separate email is sent to each\n"
11131113
"recipient. If \"single\" then a single email is sent with\n"
11141114
"each recipient as a CC address."),
1115-
(IntegerNumberOption, "max_attachment_size", sys.maxint,
1115+
(IntegerNumberOption, "max_attachment_size", sys.maxsize,
11161116
"Attachments larger than the given number of bytes\n"
11171117
"won't be attached to nosy mails. They will be replaced by\n"
11181118
"a link to the tracker's download page for the file.")

roundup/scripts/roundup_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def auto_ssl():
9393
pkey = OpenSSL.crypto.PKey()
9494
pkey.generate_key(OpenSSL.crypto.TYPE_RSA, 768)
9595
cert = OpenSSL.crypto.X509()
96-
cert.set_serial_number(random.randint(0, sys.maxint))
96+
cert.set_serial_number(random.randint(0, sys.maxsize))
9797
cert.gmtime_adj_notBefore(0)
9898
cert.gmtime_adj_notAfter(60 * 60 * 24 * 365) # one year
9999
cert.get_subject().CN = '*'

0 commit comments

Comments
 (0)