diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-04-06 13:25:26 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-04-06 13:25:26 -0600 |
commit | bb726ca19f434f5055c0efceefe48d89469fcbbe (patch) | |
tree | 889782afaf67fd5acb5f222969251871c0c46e5a /doc/sphinxext/numpydoc/docscrape.py | |
parent | 7441fa50523f5b4a16c854bf004d675e5bd86ab8 (diff) | |
download | numpy-bb726ca19f434f5055c0efceefe48d89469fcbbe.tar.gz |
2to3: Apply `print` fixer.
Add `print_function` to all `from __future__ import ...` statements
and use the python3 print function syntax everywhere.
Closes #3078.
Diffstat (limited to 'doc/sphinxext/numpydoc/docscrape.py')
-rw-r--r-- | doc/sphinxext/numpydoc/docscrape.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/doc/sphinxext/numpydoc/docscrape.py b/doc/sphinxext/numpydoc/docscrape.py index 59d3f9734..a36171855 100644 --- a/doc/sphinxext/numpydoc/docscrape.py +++ b/doc/sphinxext/numpydoc/docscrape.py @@ -1,9 +1,8 @@ """Extract reference documentation from the NumPy source tree. """ -from __future__ import division, absolute_import +from __future__ import division, absolute_import, print_function -import sys import inspect import textwrap import re @@ -11,10 +10,6 @@ import pydoc from warnings import warn import collections -if sys.version_info[0] >= 3: - from io import StringIO -else: - from io import StringIO class Reader(object): """A line-based string reader. |