From: <de...@us...> - 2003-04-02 23:24:31
|
Update of /cvsroot/pymerase/pymerase/pymerase/output/dbAPI In directory sc8-pr-cvs1:/tmp/cvs-serv27101 Modified Files: dbAPI.py Log Message: For some reason sqlEscapeString was being called with things that weren't strings. So just return those without modification. Index: dbAPI.py =================================================================== RCS file: /cvsroot/pymerase/pymerase/pymerase/output/dbAPI/dbAPI.py,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** dbAPI.py 18 Mar 2003 02:49:42 -0000 1.20 --- dbAPI.py 2 Apr 2003 23:24:27 -0000 1.21 *************** *** 37,40 **** --- 37,41 ---- import os import pprint + import re import string import sys *************** *** 58,62 **** """Given a string escape any double quote marks \" """ ! return re.sub('"', '\"', s) class Field: --- 59,66 ---- """Given a string escape any double quote marks \" """ ! if type(s) == types.StringType or type(s) == types.UnicodeType: ! return re.sub('"', '\"', s) ! else: ! return s class Field: |