mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-16 07:47:35 +01:00
Fixed D401
This commit is contained in:
parent
8fbb8e8590
commit
0df1f9cd43
1 changed files with 5 additions and 5 deletions
|
@ -46,10 +46,10 @@ class NewConfigs: # pylint: disable=[R0902]
|
|||
self.endc: str = ''
|
||||
|
||||
def check(self) -> None:
|
||||
"""Checks for .new files."""
|
||||
"""Check for .new files."""
|
||||
print('Checking for NEW configuration files...\n')
|
||||
if (self.slpkg_config_new.is_file() or self.blacklist_config_new.is_file()
|
||||
or self.repositories_config_new.is_file()):
|
||||
if (self.slpkg_config_new.is_file()
|
||||
or self.blacklist_config_new.is_file() or self.repositories_config_new.is_file()):
|
||||
print('There are NEW files:\n')
|
||||
|
||||
if self.slpkg_config_new.is_file():
|
||||
|
@ -95,7 +95,7 @@ class NewConfigs: # pylint: disable=[R0902]
|
|||
|
||||
@staticmethod
|
||||
def keep() -> None:
|
||||
"""Prints a message."""
|
||||
"""Print a message."""
|
||||
print("\nNo changes were made.\n")
|
||||
|
||||
def overwrite(self) -> None:
|
||||
|
@ -139,7 +139,7 @@ class NewConfigs: # pylint: disable=[R0902]
|
|||
print(f"mv {self.blacklist_config_new} -> {self.green}{self.blacklist_config}{self.endc}")
|
||||
|
||||
def remove(self) -> None:
|
||||
"""Removes the .new files."""
|
||||
"""Remove the .new files."""
|
||||
print() # new line
|
||||
self.remove_config_new_file()
|
||||
self.remove_repositories_new_file()
|
||||
|
|
Loading…
Reference in a new issue