From 92271ec06b7abc5b6c3daf2e94563c575983d436 Mon Sep 17 00:00:00 2001 From: Warren Weckesser Date: Tue, 26 May 2020 19:04:47 -0400 Subject: [PATCH] MAINT: core: Use a raw string for the fromstring docstring. This docstring needs to be a raw string so the backslashes in the example are not processed by Python or Sphinx. Closes gh-16390. --- numpy/core/records.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/numpy/core/records.py b/numpy/core/records.py index af59de425e69..7e1c0d591020 100644 --- a/numpy/core/records.py +++ b/numpy/core/records.py @@ -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.