Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nbs/04_code_utils.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@
" code = _replace_delimiter(code, sc_delimiter) \n",
" \n",
" # Replace multiple interior whitespace with one\n",
" code = multi_regex.sub('\\g<char> ',code)\n",
" code = multi_regex.sub(r'\\g<char> ',code)\n",
" \n",
" # Delete blank lines and whitespace at end of lines\n",
" code_lines = code.splitlines()\n",
Expand Down
2 changes: 1 addition & 1 deletion nbs/09_magics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,7 @@
"#| export\n",
"@patch_to(StataMagics)\n",
"def magic_help(self, code, kernel, cell):\n",
" \"\"\"Show help file from stata.com/help.cgi?\\{\\}\"\"\"\n",
" r\"\"\"Show help file from stata.com/help.cgi?{}\"\"\"\n",
" try:\n",
" html_help = self._get_help_html(code)\n",
" except Exception as e: # original: (urllib.error.HTTPError, urllib.error.URLError)\n",
Expand Down
2 changes: 1 addition & 1 deletion nbstata/code_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def standardize_code(code, sc_delimiter=False):
code = _replace_delimiter(code, sc_delimiter)

# Replace multiple interior whitespace with one
code = multi_regex.sub('\g<char> ',code)
code = multi_regex.sub(r'\g<char> ',code)

# Delete blank lines and whitespace at end of lines
code_lines = code.splitlines()
Expand Down
2 changes: 1 addition & 1 deletion nbstata/magics.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ def _get_help_html(self, code):
# %% ../nbs/09_magics.ipynb 56
@patch_to(StataMagics)
def magic_help(self, code, kernel, cell):
"""Show help file from stata.com/help.cgi?\{\}"""
r"""Show help file from stata.com/help.cgi?{}"""
try:
html_help = self._get_help_html(code)
except Exception as e: # original: (urllib.error.HTTPError, urllib.error.URLError)
Expand Down