Removed env from .gitignore
This commit is contained in:
parent
2c944fe209
commit
82ec233680
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,4 +1,3 @@
|
||||
__pycache__
|
||||
.vscode
|
||||
devenv
|
||||
env
|
||||
devenv
|
@ -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) + \
|
||||
|
Loading…
Reference in New Issue
Block a user