예제 #1
0
파일: loose.py 프로젝트: 2flcastro/ka-lite
 def info(self, sha):
     m = self._map_loose_object(sha)
     try:
         type, size = loose_object_header_info(m)
         return OInfo(sha, type, size)
     finally:
         m.close()
예제 #2
0
 def info(self, sha):
     m = self._map_loose_object(sha)
     try:
         type, size = loose_object_header_info(m)
         return OInfo(sha, type, size)
     finally:
         m.close()
예제 #3
0
 def info(self, sha):
     m = self._map_loose_object(sha)
     try:
         typ, size = loose_object_header_info(m)
         return OInfo(sha, typ, size)
     finally:
         if hasattr(m, "close"):
             m.close()
예제 #4
0
 def info(self, sha):
     m = self._map_loose_object(sha)
     try:
         typ, size = loose_object_header_info(m)
         return OInfo(sha, typ, size)
     finally:
         if hasattr(m, 'close'):
             m.close()