mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-01-21 02:13:01 -08:00
54c9214b03
* Bump apscheduler from 3.8.0 to 3.9.1 Bumps [apscheduler](https://github.com/agronholm/apscheduler) from 3.8.0 to 3.9.1. - [Release notes](https://github.com/agronholm/apscheduler/releases) - [Changelog](https://github.com/agronholm/apscheduler/blob/3.9.1/docs/versionhistory.rst) - [Commits](https://github.com/agronholm/apscheduler/compare/3.8.0...3.9.1) --- updated-dependencies: - dependency-name: apscheduler dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Update apscheduler==3.9.1 * Update pytz==2022.1 * Add pytz-deprecation-shim==0.1.0.post0 * Update tzdata==2022.1 * Update tzlocal==4.2 * Update requirements.txt Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> [skip ci]
14 lines
275 B
Python
14 lines
275 B
Python
import sys
|
|
|
|
_PYTZ_IMPORTED = False
|
|
|
|
|
|
def pytz_imported():
|
|
"""Detects whether or not pytz has been imported without importing pytz."""
|
|
global _PYTZ_IMPORTED
|
|
|
|
if not _PYTZ_IMPORTED and "pytz" in sys.modules:
|
|
_PYTZ_IMPORTED = True
|
|
|
|
return _PYTZ_IMPORTED
|