diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-10-12 14:56:47 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-10-12 14:56:47 +0200 |
commit | 637eadce54ca8bbe536bcf7c570c025e28e47129 (patch) | |
tree | c8691e6358e2b626b42c19bb6bb893e83464b40c /lib/git/refs.py | |
parent | f2834177c0fdf6b1af659e460fd3348f468b8ab0 (diff) | |
download | gitpython-637eadce54ca8bbe536bcf7c570c025e28e47129.tar.gz |
renamed from_string and list_from_string to _from_string and _list_from_string to indicate their new status as private method, adjusted all callers respectively
Diffstat (limited to 'lib/git/refs.py')
-rw-r--r-- | lib/git/refs.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/git/refs.py b/lib/git/refs.py index cb730edb..820150d3 100644 --- a/lib/git/refs.py +++ b/lib/git/refs.py @@ -88,10 +88,10 @@ class Ref(object): options.update(kwargs) output = repo.git.for_each_ref(common_path, **options) - return cls.list_from_string(repo, output) + return cls._list_from_string(repo, output) @classmethod - def list_from_string(cls, repo, text): + def _list_from_string(cls, repo, text): """ Parse out ref information into a list of Ref compatible objects @@ -108,12 +108,12 @@ class Ref(object): heads = [] for line in text.splitlines(): - heads.append(cls.from_string(repo, line)) + heads.append(cls._from_string(repo, line)) return heads @classmethod - def from_string(cls, repo, line): + def _from_string(cls, repo, line): """ Create a new Ref instance from the given string. |