Author: duncan
Date: Thu Dec 14 22:47:54 2006
New Revision: 8727
Modified:
branches/rel-1/freevo/src/games/snesitem.py
Log:
Split some very long lines to two or three lines
Modified: branches/rel-1/freevo/src/games/snesitem.py
==============================================================================
--- branches/rel-1/freevo/src/games/snesitem.py (original)
+++ branches/rel-1/freevo/src/games/snesitem.py Thu Dec 14 22:47:54 2006
@@ -228,14 +228,16 @@
else:
snesFile = open(file, 'rb')
-
(self['romName'],self['romHL'],self['romMem'],self['romROM'],self['romSRAM'],self['romCountry'],self['romLic'],self['romVer'],self['romICHK'],self['romCHK'])
= self._read_rom(snesFile)
+
(self['romName'],self['romHL'],self['romMem'],self['romROM'],self['romSRAM'],self['romCountry'],\
+ self['romLic'],self['romVer'],self['romICHK'],self['romCHK'])
= self._read_rom(snesFile)
snesFile.close()
if unzipped:
os.unlink(unzipped)
if DEBUG:
- print 'SNES rom name : %s - %s -> %s' %
(ord(self['romCountry']),os.path.basename(file), self['romName'])
+ print 'SNES rom name : %s - %s -> %s' % \
+ (ord(self['romCountry']),os.path.basename(file),
self['romName'])
# Allocate the name according to the country by checking the rom
name againts ASCII codes
if snesromLicences.has_key(ord(self['romLic'])):
@@ -273,7 +275,8 @@
snesFile.seek(offset)
romHeader = snesFile.read(32)
try:
-
(romName,romHL,romMem,romROM,romSRAM,romCountry,romLic,romVer,romICHK,romCHK) =
unpack('21scccccccHH', romHeader)
+
(romName,romHL,romMem,romROM,romSRAM,romCountry,romLic,romVer,romICHK,romCHK) =
\
+ unpack('21scccccccHH', romHeader)
except:
romCountry = chr(255)
romLic = chr(51)
@@ -289,7 +292,8 @@
snesFile.seek(offset)
romHeader = snesFile.read(32)
try:
-
(romName,romHL,romMem,romROM,romSRAM,romCountry,romLic,romVer,romICHK,romCHK) =
unpack('21scccccccHH', romHeader)
+
(romName,romHL,romMem,romROM,romSRAM,romCountry,romLic,romVer,romICHK,romCHK) =
\
+ unpack('21scccccccHH', romHeader)
except:
romCountry = chr(255)
romLic = chr(51)
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog