Преглед на файлове

Make read_refs private.

Jelmer Vernooij преди 14 години
родител
ревизия
3cafa9c14e
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      dulwich/client.py

+ 3 - 3
dulwich/client.py

@@ -89,7 +89,7 @@ class GitClient(object):
         """
         raise NotImplementedError()
 
-    def read_refs(self, proto):
+    def _read_refs(self, proto):
         server_capabilities = None
         refs = {}
         # Receive refs from server
@@ -152,7 +152,7 @@ class GitClient(object):
                                  and rejects ref updates
         """
         proto, unused_can_read = self._connect('receive-pack', path)
-        old_refs, server_capabilities = self.read_refs(proto)
+        old_refs, server_capabilities = self._read_refs(proto)
         if 'report-status' not in server_capabilities:
             self._send_capabilities.remove('report-status')
         new_refs = determine_wants(old_refs)
@@ -220,7 +220,7 @@ class GitClient(object):
         :param progress: Callback for progress reports (strings)
         """
         proto, can_read = self._connect('upload-pack', path)
-        (refs, server_capabilities) = self.read_refs(proto)
+        (refs, server_capabilities) = self._read_refs(proto)
         wants = determine_wants(refs)
         if not wants:
             proto.write_pkt_line(None)