Skip to content

Commit 50179cf

Browse files
committed
Improve wording: avoid triple negative
1 parent 41d4e89 commit 50179cf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Lib/mimetypes.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,8 @@ def add_type(self, type, ext, strict=True):
9595
list of standard types, else to the list of non-standard
9696
types.
9797
98-
Non-empty extensions that don't start with a '.' are not
99-
valid, so a ValueError will be raised if they are
100-
specified.
98+
Valid extensions are empty or start with a '.'.
99+
Raise a ValueError for invalid extensions.
101100
"""
102101
if ext and not ext.startswith('.'):
103102
raise ValueError("Extensions should start with a '.' or be empty")

0 commit comments

Comments
 (0)