Fixed PEP 8: E501 line too long

This commit is contained in:
Dimitris Zlatanidis 2023-01-12 22:55:02 +02:00
parent c5f338a313
commit 998d45cd1f

View file

@ -37,7 +37,8 @@ class Ascii:
def checksum_error_box(self, name, checksum, file_check):
""" Drawing checksum error box. """
print('\n' + self.bred + self.upper_left_corner + self.horizontal_line * (self.columns - 2) + self.upper_right_corner)
print('\n' + self.bred + self.upper_left_corner + self.horizontal_line * (self.columns - 2) +
self.upper_right_corner)
print(f"{self.bred}{self.vertical_line}{self.bred} Error:{self.endc} MD5SUM check for "
f"'{self.cyan}{name}'{self.red} FAILED!" + ' ' * (self.columns - (len(name)) - 37) + self.vertical_line)
print(self.bred + self.vertical_and_right + self.horizontal_line * (self.columns - 2) + self.vertical_and_left)
@ -45,4 +46,5 @@ class Ascii:
+ ' ' * (self.columns - (len(checksum)) - 13) + self.vertical_line)
print(f'{self.bred}{self.vertical_line}{self.violet} Found:{self.endc} {file_check}{self.bred}'
+ ' ' * (self.columns - (len(file_check)) - 10) + self.vertical_line)
print(self.bred + self.lower_left_corner + self.horizontal_line * (self.columns - 2) + self.lower_right_corner + self.endc)
print(self.bred + self.lower_left_corner + self.horizontal_line * (self.columns - 2) +
self.lower_right_corner + self.endc)