244 | | for entries in allentries : |
245 | | for entry in entries : |
246 | | line = [] |
247 | | for value in entry : |
248 | | try : |
249 | | strvalue = '"%s"' % value.encode(self.charset, \ |
250 | | "replace").replace(separator, |
251 | | "\\%s" % separator).replace('"', '\\"') |
252 | | except AttributeError : |
253 | | if value is None : |
254 | | strvalue = '"None"' # Double quotes around None to prevent spreadsheet from failing |
255 | | else : |
256 | | strvalue = str(value) |
257 | | line.append(strvalue) |
258 | | try : |
| 244 | try : |
| 245 | for entries in allentries : |
| 246 | for entry in entries : |
| 247 | line = [] |
| 248 | for value in entry : |
| 249 | try : |
| 250 | strvalue = '"%s"' % value.encode(self.charset, \ |
| 251 | "replace").replace(separator, |
| 252 | "\\%s" % separator).replace('"', '\\"') |
| 253 | except AttributeError : |
| 254 | if value is None : |
| 255 | strvalue = '"None"' # Double quotes around None to prevent spreadsheet from failing |
| 256 | else : |
| 257 | strvalue = str(value) |
| 258 | line.append(strvalue) |
| 259 | |