]> git.decadent.org.uk Git - dak.git/commit
read file once in HashedFile.check
authorHelmut Grohne <helmut@subdivi.de>
Thu, 15 May 2014 19:09:19 +0000 (21:09 +0200)
committerJoerg Jaspert <joerg@debian.org>
Thu, 15 May 2014 19:46:05 +0000 (21:46 +0200)
commit812a25532143ed8a4e976e2928c6a404f9f0a215
tree6ba3425f4a4409c3b185efd25db362c171db69ca
parentf0d3e4d3003954a9745a4c71665185e24565618f
read file once in HashedFile.check

Reading the file to check once rather than three times is both faster
and shorter.

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