Mercurial > p > roundup > code
comparison roundup/admin.py @ 6491:087cae2fbcea
Handle more ResourceWarning issues.
admin.py - remove unneeded close.
mailer.py - close debug log file.
indexer.py - close read of version file
memorydb.py - close python files being compled. Similiar to instance.
not sure why it's compoing things and not just letting instance do
it.
.travis.ymv disable all except 3.9-dev till we get a handle on errors.
also increase errors to 50 from 20.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 06 Sep 2021 16:03:31 -0400 |
| parents | a101541fc494 |
| children | f961dbbc3573 |
comparison
equal
deleted
inserted
replaced
| 6490:47a7fc39eaf0 | 6491:087cae2fbcea |
|---|---|
| 1365 for row in cl.export_journals(): | 1365 for row in cl.export_journals(): |
| 1366 journals.writerow(row) | 1366 journals.writerow(row) |
| 1367 if max_len > self.db.config.CSV_FIELD_SIZE: | 1367 if max_len > self.db.config.CSV_FIELD_SIZE: |
| 1368 print("Warning: config csv_field_size should be at least %s" % | 1368 print("Warning: config csv_field_size should be at least %s" % |
| 1369 max_len, file=sys.stderr) | 1369 max_len, file=sys.stderr) |
| 1370 jf.close() | |
| 1371 return 0 | 1370 return 0 |
| 1372 | 1371 |
| 1373 def do_exporttables(self, args): | 1372 def do_exporttables(self, args): |
| 1374 ''"""Usage: exporttables [[-]class[,class]] export_dir | 1373 ''"""Usage: exporttables [[-]class[,class]] export_dir |
| 1375 Export the database to colon-separated-value files, excluding the | 1374 Export the database to colon-separated-value files, excluding the |
