Commits

James Taylor committed 39187da

Fix for twobit on 64bit platforms (fixes ticket #7)

  • Participants
  • Parent commits 16eae0c

Comments (0)

Files changed (1)

lib/bx/seq/twobit.py

         
     def read( self, pattern, untuple=True ):
         rval = unpack( self.byte_order + pattern, 
-                       self.file.read( calcsize( pattern ) ) )
+                       self.file.read( calcsize( self.byte_order + pattern ) ) )
         if untuple and len( rval ) == 1: 
             return rval[0]
         return rval
         Read a length-prefixed string 
         """
         length = self.read( "B" )
-        return self.file.read( length )
+        return self.file.read( length )