From 54f0eee98485b25ccec9a3016b0ae194efdf28c5 Mon Sep 17 00:00:00 2001 From: Worros Date: Fri, 10 Oct 2008 02:53:57 +0800 Subject: [PATCH] Syntax - Fix last commit --- pyfpdb/fpdb_import.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyfpdb/fpdb_import.py b/pyfpdb/fpdb_import.py index 295836d0..b510f9dc 100755 --- a/pyfpdb/fpdb_import.py +++ b/pyfpdb/fpdb_import.py @@ -124,7 +124,7 @@ class Importer: if (len(hand)<3): pass - #todo: the above 2 self.lines are kind of a dirty hack, the mentioned circumstances should be handled elsewhere but that doesnt work with DOS/Win EOL. actually this doesnt work. + #todo: the above 2 lines are kind of a dirty hack, the mentioned circumstances should be handled elsewhere but that doesnt work with DOS/Win EOL. actually this doesnt work. elif (hand[0].endswith(" (partial)")): #partial hand - do nothing partial+=1 elif (hand[1].find("Seat")==-1 and hand[2].find("Seat")==-1 and hand[3].find("Seat")==-1):#todo: should this be or instead of and? @@ -153,7 +153,7 @@ class Importer: duplicates+=1 except (ValueError), fe: errors+=1 - self.printEmailErrorMessage(errors, options.inputFile, hand[0] + self.printEmailErrorMessage(errors, options.inputFile, hand[0]) if (options.failOnError): self.db.commit() #dont remove this, in case hand processing was cancelled this ties up any open ends. @@ -162,7 +162,7 @@ class Importer: raise except (fpdb_simple.FpdbError), fe: errors+=1 - self.printEmailErrorMessage(errors, options.inputFile, hand[0] + self.printEmailErrorMessage(errors, options.inputFile, hand[0]) #fe.printStackTrace() #todo: get stacktrace self.db.rollback()