From 3d35a4bd491f6d334fd9c6b6a937f5209a353fa9 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 2 Jan 2007 04:49:56 +0000 Subject: [PATCH] Prettification --- libprs500/lrf/meta.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/libprs500/lrf/meta.py b/libprs500/lrf/meta.py index 7c389ddab2..c7b99478e2 100644 --- a/libprs500/lrf/meta.py +++ b/libprs500/lrf/meta.py @@ -24,9 +24,12 @@ to get and set meta information. For example: >>> 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 @@ class xml_field(object): 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)