| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/django/utils/__pycache__/ |
Upload File : |
�
�|�e; � � � d Z ddlZddlZddlmZ ddlmZ ddlmZ ddl m
Z
ddlmZ d� Z
d � Zd
� Z G d� d� � Z G d
� d� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � ZeZdS )a�
Syndication feed generation library -- used for generating RSS, etc.
Sample usage:
>>> from django.utils import feedgenerator
>>> feed = feedgenerator.Rss201rev2Feed(
... title="Poynter E-Media Tidbits",
... link="http://www.poynter.org/column.asp?id=31",
... description="A group Weblog by the sharpest minds in online media/journalism/publishing.",
... language="en",
... )
>>> feed.add_item(
... title="Hello",
... link="http://www.holovaty.com/test/",
... description="Testing."
... )
>>> with open('test.rss', 'w') as fp:
... feed.write(fp, 'utf-8')
For definitions of the different versions of RSS, see:
https://web.archive.org/web/20110718035220/http://diveintomark.org/archives/2004/02/04/incompatible-rss
� N)�StringIO)�urlparse)�
iri_to_uri)�utc)�SimplerXMLGeneratorc �� � t | t j � � s1t j � | t j � � � � } t j � | � � S �N)�
isinstance�datetime�combine�time�email�utils�format_datetime��dates �</usr/lib/python3/dist-packages/django/utils/feedgenerator.py�rfc2822_dater "