8000 constants: `SCP_REGEX` -> `RE_SCP` · vcs-python/libvcs@38eec9f · GitHub
[go: up one dir, main page]

Skip to content

Commit 38eec9f

Browse files
committed
constants: SCP_REGEX -> RE_SCP
1 parent d0ffc86 commit 38eec9f

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/libvcs/url/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# Credit, pip (license: MIT):
99
# https://github.com/pypa/pip/blob/22.1.2/src/pip/_internal/vcs/git.py#L39-L52
1010
# We modified it to have groupings
11-
SCP_REGEX = r"""
11+
RE_SCP = r"""
1212
# Server, e.g. 'github.com'.
1313
(?P<hostname>([^/:]+))
1414
(?P<separator>:)

src/libvcs/url/git.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from libvcs._internal.dataclasses import SkipDefaultFieldsReprMixin
2424

2525
from .base import Rule, RuleMap, URLProtocol
26-
from .constants import RE_USER, SCP_REGEX
26+
from .constants import RE_SCP, RE_USER
2727

2828
RE_PATH = r"""
2929
(?P<hostname>([^/:]+))
@@ -70,7 +70,7 @@
7070
rf"""
7171
^(?P<scheme>ssh)?
7272
{RE_USER}
73-
{SCP_REGEX}
73+
{RE_SCP}
7474
{RE_SUFFIX}?
7575
""&quo 10000 t;,
7676
re.VERBOSE,
@@ -136,7 +136,7 @@
136136
rf"""
137137
{RE_PIP_SCP_SCHEME}
138138
{RE_USER}
139-
{SCP_REGEX}?
139+
{RE_SCP}?
140140
{RE_SUFFIX}?
141141
{RE_PIP_REV}?
142142
""",

src/libvcs/url/hg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
from libvcs.url.git import RE_PIP_REV, RE_SUFFIX
2626

2727
from .base import Rule, RuleMap, URLProtocol
28-
from .constants import RE_USER, SCP_REGEX
28+
from .constants import RE_SCP, RE_USER
2929

3030
RE_PATH = r"""
3131
(?P<hostname>([^/:]+))
@@ -68,7 +68,7 @@
6868
rf"""
6969
^(?P<scheme>ssh)?
7070
{RE_USER}
71-
{SCP_REGEX}
71+
{RE_SCP}
7272
{RE_SUFFIX}?
7373
""",
7474
re.VERBOSE,

src/libvcs/url/svn.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from libvcs.url.git import RE_PIP_REV
2727

2828
from .base import Rule, RuleMap, URLProtocol
29-
from .constants import RE_USER, SCP_REGEX
29+
from .constants import RE_SCP, RE_USER
3030

3131
RE_PATH = r"""
3232
(?P<hostname>([^/:@]+))
@@ -70,7 +70,7 @@
7070
rf"""
7171
^(?P<scheme>ssh)?
7272
{RE_USER}
73-
{SCP_REGEX}
73+
{RE_SCP}
7474
{RE_PIP_REV}?
7575
""",
7676
re.VERBOSE,

0 commit comments

Comments
 (0)
0