Skip to content

Commit

Permalink
MAINT: core: Use a raw string for the fromstring docstring.
Browse files Browse the repository at this point in the history
This docstring needs to be a raw string so the backslashes
in the example are not processed by Python or Sphinx.

Closes numpygh-16390.
  • Loading branch information
WarrenWeckesser committed May 26, 2020
1 parent 171ea2a commit 92271ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpy/core/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ def fromrecords(recList, dtype=None, shape=None, formats=None, names=None,

def fromstring(datastring, dtype=None, shape=None, offset=0, formats=None,
names=None, titles=None, aligned=False, byteorder=None):
"""Create a record array from binary data
r"""Create a record array from binary data
Note that despite the name of this function it does not accept `str`
instances.
Expand Down

0 comments on commit 92271ec

Please sign in to comment.