فهرست منبع

Add note about .close(). Fixes: #922

Jelmer Vernooij 4 سال پیش
والد
کامیت
f3c7d5ad46
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      dulwich/repo.py

+ 4 - 0
dulwich/repo.py

@@ -1045,6 +1045,10 @@ class Repo(BaseRepo):
     the path of the repository.
     the path of the repository.
 
 
     To create a new repository, use the Repo.init class method.
     To create a new repository, use the Repo.init class method.
+
+    Note that a repository object may hold on to resources such
+    as file handles for performance reasons; call .close() to free
+    up those resources.
     """
     """
 
 
     def __init__(self, root, object_store=None, bare=None):
     def __init__(self, root, object_store=None, bare=None):