Skip to content

Commit 07782b6

Browse files
committed
Removed accidentally commited leftover
1 parent e5bf831 commit 07782b6

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

adafruit_httpserver/mime_types.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,6 @@ def _keep_for(cls, extensions: List[str]) -> None:
133133
"""
134134
Unregisters all MIME types except the ones for the given extensions,\
135135
**decreasing overall memory usage**.
136-
137-
It is recommended to **always** call this function before starting the server.
138-
139-
Example::
140-
141-
keep_for([".jpg", ".mp4", ".txt"])
142136
"""
143137

144138
cls.__check_all_start_with_dot(extensions)
@@ -157,13 +151,6 @@ def _register(cls, mime_types: dict) -> None:
157151
"""
158152
Register multiple MIME types.
159153
160-
Example::
161-
162-
register({
163-
".foo": "application/foo",
164-
".bar": "application/bar",
165-
})
166-
167154
:param dict mime_types: A dictionary mapping file extensions to MIME types.
168155
"""
169156
cls.__check_all_start_with_dot(mime_types.keys())

adafruit_httpserver/server.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ def _handle_request(self, request: Request, handler: Union[Callable, None]):
216216

217217
# ...no root_path, access to filesystem disabled, return 404.
218218
elif self.root_path is None:
219-
# Response(request, status=NOT_FOUND_404).send()
220219
raise ServingFilesDisabledError
221220

222221
# ..root_path is set, access to filesystem enabled...

0 commit comments

Comments
 (0)