Skip to content

Commit

Permalink
DOC, MAINT: Fixes for errstate() and README.md documentation. (numpy#…
Browse files Browse the repository at this point in the history
…11814)

* DOC: errstate() and AppVeyor badge link

Removes outdated references to Python 2.5, which hasn't been
supported for several releases.
Corrected README.rst AppVeyor badge link.

* revert appveyor badge link to charris
  • Loading branch information
scivision authored and charris committed Aug 29, 2018
1 parent 77a82d7 commit bcdd3e7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# After changing this file, check it on:
# http://lint.travis-ci.org/
language: python

group: travis_latest
# Run jobs on container-based infrastructure, can be overridden per job
sudo: false

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ It provides:

Testing:

- NumPy versions >= 1.15 require ``pytest``
- NumPy versions < 1.15 require ``nose``
- NumPy versions &ge; 1.15 require `pytest`
- NumPy versions &lt; 1.15 require `nose`

Tests can then be run after installation with:

Expand Down
5 changes: 0 additions & 5 deletions numpy/core/numeric.py
Original file line number Diff line number Diff line change
Expand Up @@ -2850,16 +2850,11 @@ class errstate(object):
Notes
-----
The ``with`` statement was introduced in Python 2.5, and can only be used
there by importing it: ``from __future__ import with_statement``. In
earlier Python versions the ``with`` statement is not available.
For complete documentation of the types of floating-point exceptions and
treatment options, see `seterr`.
Examples
--------
>>> from __future__ import with_statement # use 'with' in Python 2.5
>>> olderr = np.seterr(all='ignore') # Set error handling to known state.
>>> np.arange(3) / 0.
Expand Down

0 comments on commit bcdd3e7

Please sign in to comment.