summaryrefslogtreecommitdiff
path: root/smg_common.py
diff options
context:
space:
mode:
Diffstat (limited to 'smg_common.py')
-rw-r--r--smg_common.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/smg_common.py b/smg_common.py
index 3c7bb0f..4fa4017 100644
--- a/smg_common.py
+++ b/smg_common.py
@@ -1,7 +1,7 @@
# padding stuff
# padding string
-class padding():
+class padding:
# the fill string
def __init__(self):
@@ -14,16 +14,16 @@ class padding():
if ((type(start_index) != int)
or (type(byte_alignment) != int)
or (start_index < 0)
- or (byte_alignment != 4 and byte_alignment != 32):
+ or (byte_alignment != 4 and byte_alignment != 32)):
return None
# return the fill string
i = 0
rtn = ""
while (start_index % byte_alignment != 0):
- rtn += self.padding[i]
+ rtn += self.string[i]
i += 1
start_index += 1
- return rtn
+ return bytes(rtn.encode("ascii"))
# name tables