]> git.decadent.org.uk Git - dak.git/commit
put Python's with statement to good use
authorHelmut Grohne <helmut@subdivi.de>
Thu, 15 May 2014 21:36:51 +0000 (23:36 +0200)
committerHelmut Grohne <helmut@subdivi.de>
Thu, 15 May 2014 21:36:51 +0000 (23:36 +0200)
commitea5573c53aa22b9812489bddf63344324fa907ca
tree6e650d7aa0f9285a450179c08d77ce8adc38be56
parent812a25532143ed8a4e976e2928c6a404f9f0a215
put Python's with statement to good use

Rather than using try-finally blocks or even failing to close files in
the event of an exception, open files in with blocks where feasible.

Signed-off-by: Helmut Grohne <helmut@subdivi.de>
daklib/contents.py
daklib/dbconn.py
daklib/utils.py