Przeglądaj źródła

Remove pointless assertion - we'll get an exception in any case if the pack doesn't exist.

Jelmer Vernooij 15 lat temu
rodzic
commit
8f3dfd0de2
1 zmienionych plików z 0 dodań i 1 usunięć
  1. 0 1
      dulwich/pack.py

+ 0 - 1
dulwich/pack.py

@@ -494,7 +494,6 @@ class PackData(object):
         mmap implementation is flawed.
         """
         self._filename = filename
-        assert os.path.exists(filename), "%s is not a packfile" % filename
         self._size = os.path.getsize(filename)
         self._header_size = 12
         assert self._size >= self._header_size, "%s is too small for a packfile (%d < %d)" % (filename, self._size, self._header_size)