diff options
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/pydoc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py index ecee79b..e83e895 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -99,7 +99,7 @@ def replace(text, *pairs): def cram(text, maxlen): """Omit part of a string if needed to make it fit in a maximum length.""" if len(text) > maxlen: - pre = max(0, (maxlen-3)/2) + pre = max(0, (maxlen-3)//2) post = max(0, maxlen-3-pre) return text[:pre] + '...' + text[len(text)-post:] return text |