]> git.ipfire.org Git - pbs.git/commitdiff
Drop unused code in misc.py
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 24 Oct 2017 20:33:57 +0000 (21:33 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 24 Oct 2017 20:33:57 +0000 (21:33 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/misc.py

index 0d09740f3f45628cc2439413cd30daba9f2497d2..62eb213813ed63f53c7b85d717a6d83c231ca20e 100644 (file)
@@ -5,7 +5,6 @@ from __future__ import division
 import hashlib
 import os
 import re
-import tarfile
 
 from tornado.escape import xhtml_escape
 
@@ -76,7 +75,6 @@ def format_filemode(filetype, filemode):
 
 def calc_hash(filename, algo="sha512"):
        assert algo in hashlib.algorithms
-       assert os.path.exists(filename)
 
        f = open(filename, "rb")
        h = hashlib.new(algo)