Skip to content

Commit efbbca9

Browse files
authored
Merge pull request gitpython-developers#649 from OddBloke/hide_re_fetch_result
FetchInfo.re_fetch_result has no reason to be public
2 parents e4760e3 + fb0794a commit efbbca9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: git/remote.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ class FetchInfo(object):
209209
NEW_TAG, NEW_HEAD, HEAD_UPTODATE, TAG_UPDATE, REJECTED, FORCED_UPDATE, \
210210
FAST_FORWARD, ERROR = [1 << x for x in range(8)]
211211

212-
re_fetch_result = re.compile(r'^\s*(.) (\[?[\w\s\.$@]+\]?)\s+(.+) -> ([^\s]+)( \(.*\)?$)?')
212+
_re_fetch_result = re.compile(r'^\s*(.) (\[?[\w\s\.$@]+\]?)\s+(.+) -> ([^\s]+)( \(.*\)?$)?')
213213

214214
_flag_map = {'!': ERROR,
215215
'+': FORCED_UPDATE,
@@ -264,7 +264,7 @@ def _from_line(cls, repo, line, fetch_line):
264264
265265
fetch line is the corresponding line from FETCH_HEAD, like
266266
acb0fa8b94ef421ad60c8507b634759a472cd56c not-for-merge branch '0.1.7RC' of /tmp/tmpya0vairemote_repo"""
267-
match = cls.re_fetch_result.match(line)
267+
match = cls._re_fetch_result.match(line)
268268
if match is None:
269269
raise ValueError("Failed to parse line: %r" % line)
270270

0 commit comments

Comments
 (0)