diff options
| author | Georg Brandl <georg@python.org> | 2014-03-01 08:18:23 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2014-03-01 08:18:23 +0100 |
| commit | 2f950d546d7304e7b9d6592d27b47f82b3a424ad (patch) | |
| tree | 54b9419c78a5f725508241c48a1ca731ee9317fa /sphinx/util/docstrings.py | |
| parent | 3c649bfde0126d72894989506c40bb8ae35d7d23 (diff) | |
| parent | 4047fe8184c2984241b92754b6e6d6b639b8d09b (diff) | |
| download | sphinx-2f950d546d7304e7b9d6592d27b47f82b3a424ad.tar.gz | |
Update copyright year.
Diffstat (limited to 'sphinx/util/docstrings.py')
| -rw-r--r-- | sphinx/util/docstrings.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/util/docstrings.py b/sphinx/util/docstrings.py index 71381305..6b66eee9 100644 --- a/sphinx/util/docstrings.py +++ b/sphinx/util/docstrings.py @@ -23,7 +23,7 @@ def prepare_docstring(s, ignore=1): """ lines = s.expandtabs().splitlines() # Find minimum indentation of any non-blank lines after ignored lines. - margin = sys.maxint + margin = sys.maxsize for line in lines[ignore:]: content = len(line.lstrip()) if content: @@ -33,7 +33,7 @@ def prepare_docstring(s, ignore=1): for i in range(ignore): if i < len(lines): lines[i] = lines[i].lstrip() - if margin < sys.maxint: + if margin < sys.maxsize: for i in range(ignore, len(lines)): lines[i] = lines[i][margin:] # Remove any leading blank lines. while lines and not lines[0]: |
