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()
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()
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()