Skip to content

Commit 764cd30

Browse files
authored
Trivial grammar fix (#1429)
1 parent 48fff58 commit 764cd30

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

loguru/_colorizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def feed(self, text, *, raw=False):
280280
if ansi is None:
281281
raise ValueError(
282282
'Tag "%s" does not correspond to any known color directive, '
283-
"make sure you did not misspelled it (or prepend '\\' to escape it)"
283+
"make sure you have not misspelled it (or prepend '\\' to escape it)"
284284
% markup
285285
)
286286

tests/test_ansimarkup_basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def test_invalid_color(text, strip):
219219
ValueError,
220220
match=(
221221
'^Tag "<[^>]*>" does not correspond to any known color directive, '
222-
r"make sure you did not misspelled it \(or prepend '\\' to escape it\)$"
222+
r"make sure you have not misspelled it \(or prepend '\\' to escape it\)$"
223223
),
224224
):
225225
parse(text, strip=strip)

tests/test_ansimarkup_extended.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def test_invalid_color(text, strip):
157157
ValueError,
158158
match=(
159159
'^Tag "<[^>]*>" does not correspond to any known color directive, '
160-
r"make sure you did not misspelled it \(or prepend '\\' to escape it\)$"
160+
r"make sure you have not misspelled it \(or prepend '\\' to escape it\)$"
161161
),
162162
):
163163
parse(text, strip=strip)
@@ -179,7 +179,7 @@ def test_invalid_hex(text, strip):
179179
ValueError,
180180
match=(
181181
'^Tag "<[^>]*>" does not correspond to any known color directive, '
182-
r"make sure you did not misspelled it \(or prepend '\\' to escape it\)$"
182+
r"make sure you have not misspelled it \(or prepend '\\' to escape it\)$"
183183
),
184184
):
185185
parse(text, strip=strip)
@@ -192,7 +192,7 @@ def test_invalid_8bit(text, strip):
192192
ValueError,
193193
match=(
194194
'^Tag "<[^>]*>" does not correspond to any known color directive, '
195-
r"make sure you did not misspelled it \(or prepend '\\' to escape it\)$"
195+
r"make sure you have not misspelled it \(or prepend '\\' to escape it\)$"
196196
),
197197
):
198198
parse(text, strip=strip)
@@ -214,7 +214,7 @@ def test_invalid_rgb(text, strip):
214214
ValueError,
215215
match=(
216216
'^Tag "<[^>]*>" does not correspond to any known color directive, '
217-
r"make sure you did not misspelled it \(or prepend '\\' to escape it\)$"
217+
r"make sure you have not misspelled it \(or prepend '\\' to escape it\)$"
218218
),
219219
):
220220
parse(text, strip=strip)

tests/test_levels.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def test_add_level_unknown_color(color):
272272
ValueError,
273273
match=(
274274
'Tag "<[^>]*>" does not correspond to any known color directive, '
275-
r"make sure you did not misspelled it \(or prepend '\\' to escape it\)"
275+
r"make sure you have not misspelled it \(or prepend '\\' to escape it\)"
276276
),
277277
):
278278
logger.level("foobar", no=20, icon="", color=color)

0 commit comments

Comments
 (0)