summaryrefslogtreecommitdiff
path: root/docutils/statemachine.py
diff options
context:
space:
mode:
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2019-08-26 16:42:38 +0000
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2019-08-26 16:42:38 +0000
commitf2fc1cbe2a8fdc388319b6cd9046c19afe127d25 (patch)
tree46a6efce2b854bf92e4a3f23147303e5894b1ee9 /docutils/statemachine.py
parent6902d96766b5cdf45060327c3e31d6e1ac6153c4 (diff)
downloaddocutils-f2fc1cbe2a8fdc388319b6cd9046c19afe127d25.tar.gz
py3: Replace 'sys.maxint' with 'sys.maxsize'
From the Python 3 release docs [1]: The sys.maxint constant was removed, since there is no longer a limit to the value of integers. However, sys.maxsize can be used as an integer larger than any practical list or string index. It conforms to the implementation’s “natural” integer size and is typically the same as sys.maxint in previous releases on the same platform (assuming the same build options). [1] https://docs.python.org/3.1/whatsnew/3.0.html#integers Signed-off-by: Stephen Finucane <stephen@that.guru> git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8354 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/statemachine.py')
-rw-r--r--docutils/statemachine.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docutils/statemachine.py b/docutils/statemachine.py
index e607a1fb7..240307f7c 100644
--- a/docutils/statemachine.py
+++ b/docutils/statemachine.py
@@ -1341,7 +1341,7 @@ class StringList(ViewList):
"""A `ViewList` with string-specific methods."""
- def trim_left(self, length, start=0, end=sys.maxint):
+ def trim_left(self, length, start=0, end=sys.maxsize):
"""
Trim `length` characters off the beginning of each item, in-place,
from index `start` to `end`. No whitespace-checking is done on the