Skip to content

Commit 669df09

Browse files
committed
代码整理
1 parent 655186c commit 669df09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pixel_font_knife/mono_bitmap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __init__(self, bitmap: list[list[int]] | None = None):
4242
self.height = len(bitmap)
4343
for bitmap_row in bitmap:
4444
if self.width != len(bitmap_row):
45-
raise ValueError('Rows with different widths')
45+
raise ValueError('rows with different widths')
4646
self.append([0 if alpha == 0 else 1 for alpha in bitmap_row])
4747

4848
def __eq__(self, other: Any) -> bool:
@@ -125,7 +125,7 @@ def minus(self, other: 'MonoBitmap', x: int = 0, y: int = 0) -> 'MonoBitmap':
125125

126126
def stroke(self, size: int) -> 'MonoBitmap':
127127
if size <= 0:
128-
raise ValueError(f'The stroke size must be a positive number: {size}')
128+
raise ValueError(f'the stroke size must be a positive number: {size}')
129129

130130
bitmap = self.copy()
131131
for y, source_row in enumerate(self):

0 commit comments

Comments
 (0)