Skip to content

Commit

Permalink
Fixed DeprecationWarning regarding asyncio.iscoroutinefunction() on P…
Browse files Browse the repository at this point in the history
…ython 3.14
  • Loading branch information
agronholm committed Nov 23, 2024
1 parent 336b743 commit 83614a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/apscheduler/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,18 @@

import re
import sys
from asyncio import iscoroutinefunction
from calendar import timegm
from datetime import date, datetime, time, timedelta, tzinfo
from functools import partial
from inspect import isbuiltin, isclass, isfunction, ismethod, signature

from pytz import FixedOffset, timezone, utc

if sys.version_info < (3, 14):
from asyncio import iscoroutinefunction
else:
from inspect import iscoroutinefunction

if sys.version_info < (3, 9):
from backports.zoneinfo import ZoneInfo
else:
Expand Down

0 comments on commit 83614a8

Please sign in to comment.