re-indent function

This commit is contained in:
eblade 2008-12-18 17:39:43 -05:00
parent 42113f301f
commit 685abee8b1

View File

@ -282,26 +282,24 @@ class Importer:
self.fdb.db.commit() self.fdb.db.commit()
self.handsId=handsId self.handsId=handsId
return handsId return handsId
#end def import_file_dict
def parseTourneyHistory(self): def parseTourneyHistory(self):
print "Tourney history parser stub" print "Tourney history parser stub"
#Find tournament boundaries. #Find tournament boundaries.
#print self.foabs #print self.foabs
def printEmailErrorMessage(self, errors, filename, line):
def printEmailErrorMessage(self, errors, filename, line): traceback.print_exc(file=sys.stderr)
traceback.print_exc(file=sys.stderr) print "Error No.",errors,", please send the hand causing this to steffen@sycamoretest.info so I can fix it."
print "Error No.",errors,", please send the hand causing this to steffen@sycamoretest.info so I can fix it." print "Filename:", filename
print "Filename:", filename print "Here is the first line so you can identify it. Please mention that the error was a ValueError:"
print "Here is the first line so you can identify it. Please mention that the error was a ValueError:" print self.hand[0]
print self.hand[0] print "Hand logged to hand-errors.txt"
print "Hand logged to hand-errors.txt" logfile = open('hand-errors.txt', 'a')
logfile = open('hand-errors.txt', 'a') for s in self.hand:
for s in self.hand: logfile.write(str(s) + "\n")
logfile.write(str(s) + "\n") logfile.write("\n")
logfile.write("\n") logfile.close()
logfile.close()
if __name__ == "__main__": if __name__ == "__main__":
print "CLI for fpdb_import is now available as CliFpdb.py" print "CLI for fpdb_import is now available as CliFpdb.py"