Browse Source

Merge pull request #6 from Lucretiel/fix-lowercase-hex

Fixed allocate inserting lowercase hex characters for the size
Matt Sparks 11 years ago
parent
commit
92696310fc
1 changed files with 2 additions and 2 deletions
  1. 2 2
      alphasign/interfaces/base.py

+ 2 - 2
alphasign/interfaces/base.py

@@ -74,7 +74,7 @@ class BaseInterface(object):
     """
     seq = ""
     for obj in files:
-      size_hex = "%04x" % obj.size
+      size_hex = "%04X" % obj.size
       # format: FTPSIZEQQQQ
 
       if type(obj) == alphasign.string.String:
@@ -100,7 +100,7 @@ class BaseInterface(object):
                    ("%d" % (i + 1),
                    "A",    # file type
                    constants.UNLOCKED,
-                   "%04x" % 100,
+                   "%04X" % 100,
                    "FEFE"))
       seq += alloc_str