git-remote-hg icon indicating copy to clipboard operation
git-remote-hg copied to clipboard

SyntaxWarning about regexes

Open rotu opened this issue 2 years ago • 0 comments

When I cloned a hg repo, I saw these warnings:

/opt/homebrew/bin/git-remote-hg:76: SyntaxWarning: invalid escape sequence '\w'
  RAW_AUTHOR_RE = re.compile('^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)')
/opt/homebrew/bin/git-remote-hg:281: SyntaxWarning: invalid escape sequence '\('
  m = re.match('^(.+?) ext:\((.+)\)$', name)

rotu avatar Nov 18 '23 06:11 rotu