Source: khal Source-Version: 1:0.10.4~ds-3 Severity: important Tags: upstream
Hi! This package started to emit deprecation warnings once the python3-tzlocal got updated few days ago to version 4.1-1 (which depends transitively on python3-pytz-deprecation-shim). When running something like «khal calendar» one now gets this screenful of warnings: ,--- khal calendar --- /usr/lib/python3/dist-packages/khal/controllers.py:256: PytzUsageWarning: The localize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html original_start = conf['locale']['local_timezone'].localize(start) /usr/lib/python3/dist-packages/khal/controllers.py:177: PytzUsageWarning: The localize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html start_local = locale['local_timezone'].localize(start) /usr/lib/python3/dist-packages/khal/controllers.py:178: PytzUsageWarning: The localize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html end_local = locale['local_timezone'].localize(end) /usr/lib/python3/dist-packages/khal/khalendar/event.py:541: PytzUsageWarning: The localize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html start_local_datetime = self._locale['local_timezone'].localize( /usr/lib/python3/dist-packages/khal/khalendar/event.py:543: PytzUsageWarning: The localize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html end_local_datetime = self._locale['local_timezone'].localize( /usr/lib/python3/dist-packages/khal/khalendar/event.py:546: PytzUsageWarning: The localize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html day_start = self._locale['local_timezone'].localize( /usr/lib/python3/dist-packages/khal/khalendar/event.py:549: PytzUsageWarning: The localize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html day_end = self._locale['local_timezone'].localize( /usr/lib/python3/dist-packages/khal/khalendar/khalendar.py:162: PytzUsageWarning: The localize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html self._backend.get_localized_calendars(localize(start), localize(end)), `--- Thanks, Guillem