Skip to content

Commit

Permalink
fix some invalid re escape warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lazka committed Nov 5, 2017
1 parent 609b8a4 commit 5d16088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion senf/_winansi.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def ansi_parse(code):
return code[-1:], tuple([int(v or "0") for v in code[2:-1].split(";")])


def ansi_split(text, _re=re.compile(u"(\x1b\[(\d*;?)*\S)")):
def ansi_split(text, _re=re.compile(u"(\x1b\\[(\\d*;?)*\\S)")):
"""Yields (is_ansi, text)"""

for part in _re.split(text):
Expand Down

0 comments on commit 5d16088

Please sign in to comment.