Remove unused

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2020-01-29 17:41:09 +01:00
parent 4bdc3e2505
commit 144721d385
4 changed files with 0 additions and 8 deletions

View file

@ -75,7 +75,6 @@ class BlackList:
print(f"{self.green}{pkg}{self.endc}")
black_conf.write(pkg + "\n")
self.quit = True
black_conf.close()
if self.quit:
print() # new line at exit
@ -90,7 +89,6 @@ class BlackList:
else:
print(f"{self.red}{line}{self.endc}")
self.quit = True
remove.close()
if self.quit:
print() # new line at exit

View file

@ -171,7 +171,6 @@ def log_head(path, log_file, log_time):
log.write("Date : " + time.strftime("%d/%m/%Y") + "\n")
log.write("Time : " + log_time + "\n\n")
log.write("#" * 79 + "\n\n")
log.close()
def log_end(path, log_file, sum_time):
@ -185,7 +184,6 @@ def log_end(path, log_file, sum_time):
log.write(f"Total build time : {sum_time}\n")
log.write(" " * 38 + "E N D\n\n")
log.write("#" * 79 + "\n\n")
log.close()
def build_time(start_time):

View file

@ -82,7 +82,6 @@ class Repo:
print("\nRepository '{0}' successfully "
"removed\n".format(repo))
rem_repo = True
repos.close()
if not rem_repo:
print("\nRepository '{0}' doesn't exist\n".format(repo))
raise SystemExit()

View file

@ -65,7 +65,6 @@ class QueuePkgs:
with open(self.queue_list, "w") as queue:
for line in queue_file:
queue.write(line)
queue.close()
self.queued = Utils().read_file(self.queue_list)
def packages(self):
@ -106,7 +105,6 @@ class QueuePkgs:
else:
print(f"{self.red}{pkg}{self.endc}")
self.quit = True
queue.close()
if self.quit:
print() # new line at exit
@ -121,7 +119,6 @@ class QueuePkgs:
else:
print(f"{self.red}{line}{self.endc}")
self.quit = True
queue.close()
if self.quit:
print() # new line at exit