Skip to content

Commit 03945c2

Browse files
Fixed DeprecationWarning from using escape backslash in docstring
Used r"""text with backslashes""" to avoid deprecation warning that looked like this when running pytest: ``` dpctl\__init__.py:64 C:\devel\dpctl\dpctl\__init__.py:64: DeprecationWarning: invalid escape sequence \* """ ``` Same could be seen on Linux.
1 parent a96cf11 commit 03945c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpctl/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757

5858
def get_include():
59-
"""
59+
r"""
6060
Return the directory that contains the dpctl \*.h header files.
6161
6262
Extension modules that need to be compiled against dpctl should use

0 commit comments

Comments
 (0)