Removed env from .gitignore

This commit is contained in:
Lucas Noki 2020-01-22 00:05:31 +01:00
parent 2c944fe209
commit 82ec233680
2 changed files with 3 additions and 4 deletions

1
.gitignore vendored
View File

@ -1,4 +1,3 @@
__pycache__
.vscode
devenv
env

View File

@ -44,7 +44,7 @@ class SwapModule(AbstractModule):
self.swap_file = final_list[5]
except IndexError:
print("Swap file doesn´t exist!")
return "None"
return None
def get_swap_size(self):
swap_size = subprocess.check_output(['swapon', '--show']).decode("UTF-8")
@ -118,7 +118,7 @@ class SwapModule(AbstractModule):
def delete_swap(self):
location = self.swap_location_check()
if location == "None":
if location is None:
return None
else:
disable_swapfile = "sudo swapoff {} && ".format(self.swap_file) + \