Doc: Fix the array.fromfile method doc (GH-22037) (GH-25630)

The check about the f argument type was removed in this commit:
2c94aa567e

Thanks for Pedro Arthur Duarte (pedroarthur.jedi at gmail.com) by the help with
this bug.
(cherry picked from commit bd25bcd37a)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
This commit is contained in:
Miss Islington (bot) 2021-04-26 07:24:17 -07:00 committed by GitHub
parent d7a1a815d9
commit b348580da6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -160,8 +160,7 @@ The following data items and methods are also supported:
Read *n* items (as machine values) from the :term:`file object` *f* and append Read *n* items (as machine values) from the :term:`file object` *f* and append
them to the end of the array. If less than *n* items are available, them to the end of the array. If less than *n* items are available,
:exc:`EOFError` is raised, but the items that were available are still :exc:`EOFError` is raised, but the items that were available are still
inserted into the array. *f* must be a real built-in file object; something inserted into the array.
else with a :meth:`read` method won't do.
.. method:: array.fromlist(list) .. method:: array.fromlist(list)