Browse Source

backports

master
Nils 3 years ago
parent
commit
1161f1d72c
  1. 8
      atomfeedgen.py

8
atomfeedgen.py

@ -9,9 +9,17 @@ try:
except ModuleNotFoundError:
from backports.zoneinfo import ZoneInfo
from datetime import datetime, timezone, tzinfo
import sys
from feedgen.feed import FeedGenerator
try:
datetime.fromisoformat
fromisoformat = datetime.fromisoformat
except AttributeError:
import backports.datetime_fromisoformat
fromisoformat = backports.datetime_fromisoformat
fg = FeedGenerator()

Loading…
Cancel
Save