Skip to content

Commit

Permalink
Merge pull request #378 from bennorth/fix-backslash-deprecation-warnings
Browse files Browse the repository at this point in the history
Fix backslash deprecation warnings
  • Loading branch information
nicholasserra authored Nov 29, 2020
2 parents e30cedc + 7b63eb1 commit 252317f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/markdown2.py
Original file line number Diff line number Diff line change
Expand Up @@ -2232,7 +2232,7 @@ def _encode_amps_and_angles(self, text):
text = self._naked_gt_re.sub('>', text)
return text

_incomplete_tags_re = re.compile("<(/?\w+?(?!\w).+?[\s/]+?)")
_incomplete_tags_re = re.compile(r"<(/?\w+?(?!\w).+?[\s/]+?)")

def _encode_incomplete_tags(self, text):
if self.safe_mode not in ("replace", "escape"):
Expand Down
2 changes: 1 addition & 1 deletion test/testall.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def _python_ver_from_python(python):
assert ' ' not in python
o = os.popen('''%s -c "import sys; print(sys.version)"''' % python)
ver_str = o.read().strip()
ver_bits = re.split("\.|[^\d]", ver_str, 2)[:2]
ver_bits = re.split(r"\.|[^\d]", ver_str, 2)[:2]
ver = tuple(map(int, ver_bits))
return ver

Expand Down

0 comments on commit 252317f

Please sign in to comment.