Skip to content

Commit

Permalink
fixes for python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Oct 6, 2023
1 parent 8851ba2 commit 4ca3baf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion colorama/ansitowin32.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class AnsiToWin32(object):
sequences from the text, and if outputting to a tty, will convert them into
win32 function calls.
'''
ANSI_RE = re.compile('\033\[((?:\d|;)*)([a-zA-Z])')
ANSI_RE = re.compile(r'\033\[((?:\d|;)*)([a-zA-Z])')

def __init__(self, wrapped, convert=None, strip=None, autoreset=False):
# The wrapped stream (normally sys.stdout or sys.stderr)
Expand Down
2 changes: 1 addition & 1 deletion mod/tools/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def get_branches(proj_dir) :
for line in lines :
tokens = line[2:].split()
local_branch = tokens[0]
if re.compile("^\[.*(:|\])$").match(tokens[2]) :
if re.compile(r"^\[.*(:|\])$").match(tokens[2]) :
remote_branch = tokens[2][1:-1]
branches[local_branch] = remote_branch
except subprocess.CalledProcessError :
Expand Down

0 comments on commit 4ca3baf

Please sign in to comment.