Prettification

This commit is contained in:
Kovid Goyal 2007-01-02 04:49:56 +00:00
parent 59ed06686a
commit 3d35a4bd49

View file

@ -24,9 +24,12 @@
>>> lrf.category = "History"
"""
import struct, array, zlib, StringIO
import struct
import array
import zlib
import StringIO
import xml.dom.minidom as dom
from xml.dom.ext import Print as Print
from xml.dom.ext import Print
from libprs500.prstypes import field
@ -121,7 +124,8 @@ def __repr__(self):
class LRFMetaFile(object):
""" Has properties to read and write all Meta information in a LRF file. """
LRF_HEADER = "L\0R\0F\0\0\0" #: The first 8 bytes of all valid LRF files
# The first 8 bytes of all valid LRF files
LRF_HEADER = u'LRF'.encode('utf-16')[2:]+'\0\0'
lrf_header = fixed_stringfield(length=8, start=0)
version = field(fmt=WORD, start=8)