Skip to content

Commit a769d7c

Browse files
committed
Use raw doc string to fix SyntaxWarning
1 parent 94aa60c commit a769d7c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nbs/09_magics.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@
11001100
"#| export\n",
11011101
"@patch_to(StataMagics)\n",
11021102
"def magic_help(self, code, kernel, cell):\n",
1103-
" \"\"\"Show help file from stata.com/help.cgi?\\{\\}\"\"\"\n",
1103+
" r\"\"\"Show help file from stata.com/help.cgi?{}\"\"\"\n",
11041104
" try:\n",
11051105
" html_help = self._get_help_html(code)\n",
11061106
" except Exception as e: # original: (urllib.error.HTTPError, urllib.error.URLError)\n",

nbstata/magics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ def _get_help_html(self, code):
428428
# %% ../nbs/09_magics.ipynb 56
429429
@patch_to(StataMagics)
430430
def magic_help(self, code, kernel, cell):
431-
"""Show help file from stata.com/help.cgi?\{\}"""
431+
r"""Show help file from stata.com/help.cgi?{}"""
432432
try:
433433
html_help = self._get_help_html(code)
434434
except Exception as e: # original: (urllib.error.HTTPError, urllib.error.URLError)

0 commit comments

Comments
 (0)