removed some debug output
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Mon, 13 Jun 2016 11:06:38 +0000 (13:06 +0200)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Wed, 15 Jun 2016 11:18:03 +0000 (13:18 +0200)
deltatar/tarfile.py

index aa07632..9b2954a 100644 (file)
@@ -2395,7 +2395,6 @@ class TarFile(object):
         buf = tarinfo.tobuf(self.format, self.encoding, self.errors)
         self.fileobj.write(buf)
         self.offset += len(buf)
-        self._dbg(1, 'tarinfo has size {}'.format(len(buf)))
 
         if self.max_volume_size:
             if isinstance(self.fileobj, _Stream):
@@ -2469,7 +2468,6 @@ class TarFile(object):
 
                 # write new volume header
                 buf = tarinfo.tobuf(self.format, self.encoding, self.errors)
-                self._dbg(1, 'tarinfo has size {}'.format(len(buf)))
                 self.fileobj.write(buf)
                 self.offset += len(buf)
 
@@ -2482,8 +2480,6 @@ class TarFile(object):
         # now, all data has been written. We may have to fill up the rest of
         # the block in target with 0s
         remainder = (tarinfo.size - tarinfo.volume_offset) % BLOCKSIZE
-        self._dbg(1, 'wrote everything, fill with {} 0s to {}'
-                     .format(BLOCKSIZE - remainder, BLOCKSIZE))
         if remainder > 0:
             self.fileobj.write(NUL * (BLOCKSIZE - remainder))
             self.offset += BLOCKSIZE - remainder