1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
From: Balint Reczey <balint.reczey@canonical.com>
Date: Wed, 6 Dec 2017 01:52:12 +0100
Subject: Remove tab indentation
---
VMDKstream.py | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/VMDKstream.py b/VMDKstream.py
index 6d8cfba..95a3cde 100755
--- a/VMDKstream.py
+++ b/VMDKstream.py
@@ -105,14 +105,14 @@ def create_sparse_header(inFileSectors, descriptorSize,
rgdOffset, gdOffset, overHead, uncleanShutdown,
'\n', ' ', '\r', '\n', compressAlgorithm ]
for i in range(433):
- header_list.append(0)
+ header_list.append(0)
header_struct = "=IIIQQQQIQQQBccccH433B"
return struct.pack(header_struct, *header_list)
def create_marker(numSectors, size, marker_type):
marker_list = [ numSectors, size, marker_type ]
for i in range(496):
- marker_list.append(0)
+ marker_list.append(0)
marker_struct = "=QII496B"
return struct.pack(marker_struct, *marker_list)
@@ -251,13 +251,13 @@ def convert_to_stream(infilename, outfilename):
else:
# Create a compressed grain
currentGrainTable.append(sector_pointer(outfile))
- compChunk = zlib.compress(inChunk)
+ compChunk = zlib.compress(inChunk)
grain_marker = create_grain_marker(inputSectorPointer,
len(compChunk))
- grainPad, writeSectors = pad_to_sector(len(compChunk) + len(grain_marker))
- outfile.write(grain_marker)
- outfile.write(compChunk)
- outfile.write(grainPad)
+ grainPad, writeSectors = pad_to_sector(len(compChunk) + len(grain_marker))
+ outfile.write(grain_marker)
+ outfile.write(compChunk)
+ outfile.write(grainPad)
if len(currentGrainTable) == numGTEsPerGT:
# Table is full
|