Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,25 @@ Backwards Incompatibilities

- Drop support for Python 2.7, 3.4, 3.5, 3.6, 3.7, 3.8 and 3.9

- The date helpers ``parse_date``, ``parse_date_delta``, ``serialize_date``,
``serialize_date_delta`` and ``timedelta_to_seconds`` are no longer
re-exported from the top-level ``webob`` package. They moved to
``webob.datetime_utils`` in WebOb 0.9.7 and have been re-exported from
``webob`` for backwards compatibility ever since, but were never documented
or listed in ``webob.__all__``. Import them from ``webob.datetime_utils``
instead.

The ``UTC`` tzinfo object and the ``year``, ``month``, ``week``, ``day``,
``hour``, ``minute`` and ``second`` timedelta constants are unaffected and
remain importable from ``webob``.

- ``BaseRequest`` is now listed in ``webob.__all__``. It was already
importable from ``webob``, but its absence from ``__all__`` meant type
checkers would reject ``from webob import BaseRequest`` once WebOb ships a
``py.typed`` marker.

See https://github.com/Pylons/webob/issues/457

Experimental Features
~~~~~~~~~~~~~~~~~~~~~

Expand Down
8 changes: 2 additions & 6 deletions src/webob/__init__.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
from webob.datetime_utils import ( # noqa: F401
from webob.datetime_utils import (
UTC,
day,
hour,
minute,
month,
parse_date,
parse_date_delta,
second,
serialize_date,
serialize_date_delta,
timedelta_to_seconds,
week,
year,
)
Expand All @@ -18,6 +13,7 @@
from webob.util import html_escape

__all__ = [
"BaseRequest",
"Request",
"Response",
"UTC",
Expand Down