From 43dfe946b6385037141b94b775112037fe5f032f Mon Sep 17 00:00:00 2001 From: Sam Wenham Date: Mon, 24 Feb 2020 15:04:07 +0000 Subject: Just removing dud whitespace --- parsers/subcaves.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'parsers/subcaves.py') diff --git a/parsers/subcaves.py b/parsers/subcaves.py index 739af44..364da0d 100644 --- a/parsers/subcaves.py +++ b/parsers/subcaves.py @@ -1,5 +1,7 @@ ''' -This module is the part of troggle that parses descriptions of cave parts (subcaves) from the legacy html files and saves them in the troggle database as instances of the model Subcave. Unfortunately, this parser can not be very flexible because the legacy format is poorly structured. +This module is the part of troggle that parses descriptions of cave parts (subcaves) from the legacy html +files and saves them in the troggle database as instances of the model Subcave. +Unfortunately, this parser can not be very flexible because the legacy format is poorly structured. ''' import sys, os @@ -29,12 +31,12 @@ def importSubcaves(cave): link[0]) subcaveFile=open(subcaveFilePath,'r') description=subcaveFile.read().decode('iso-8859-1').encode('utf-8') - + lookupAttribs={'title':link[1], 'cave':cave} nonLookupAttribs={'description':description} newSubcave=save_carefully(Subcave,lookupAttribs=lookupAttribs,nonLookupAttribs=nonLookupAttribs) - logging.info("Added " + unicode(newSubcave) + " to " + unicode(cave)) + logging.info("Added " + unicode(newSubcave) + " to " + unicode(cave)) except IOError: logging.info("Subcave import couldn't open "+subcaveFilePath) -- cgit v1.2.3