Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/django/utils/__pycache__/ |
Upload File : |
o 3�a; � @ s� d Z ddlZddlZddlmZ ddlmZ ddlmZ ddl m Z ddlmZ dd � Z d d� Zdd � ZG dd� d�ZG dd� d�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� 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 C s* t | tj�stj�| t�� �} tj�| �S �N)� isinstance�datetime�combine�time�email�utils�format_datetime��date� r �</usr/lib/python3/dist-packages/django/utils/feedgenerator.py�rfc2822_date"