diff hgext/schemes.py @ 44024:c1ccefb513e4

cleanup: drop redundant character escapes outside of `[]` Flagged by PyCharm. `@`, `:`, `<`, `>`, and `{` aren't special characters. (I'm a bit surprised that it doesn't also want to unescape `}` in schemes.py.) Differential Revision: https://phab.mercurial-scm.org/D7767
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 28 Dec 2019 01:51:17 -0500
parents 687b865b95ad
children 9d2b2df2c2ba
line wrap: on
line diff
--- a/hgext/schemes.py	Sat Dec 28 01:35:05 2019 -0500
+++ b/hgext/schemes.py	Sat Dec 28 01:51:17 2019 -0500
@@ -63,7 +63,7 @@
 # leave the attribute unspecified.
 testedwith = b'ships-with-hg-core'
 
-_partre = re.compile(br'\{(\d+)\}')
+_partre = re.compile(br'{(\d+)\}')
 
 
 class ShortRepository(object):