Format: application/x-python-code
1 o
2
3 /'h�B � @ s@ d dl Z ddlmZ ddlmZ ddlmZ G dd� de�ZdS )� N� )�_parse_date)�make_safe_absolute_uri)�FeedParserDictc @ s� e Zd ZdZdddddddddddddd�
4 Zdd� Zdd� Zdd � Zd
5 d� Zdd
6 � Z e Z
7 dd� Zdd� Zdd� Z
8 e
9 Zdd� ZeZdd� ZeZdd� ZeZdd� Zdd� Zdd� Zd d!� Zd"d#� Zd$d%� Zd&d'� Zd(d)� Zd*d+� ZeZeZd,d-� Z e Z!e Z"d.d/� Z#d0d1� Z$d2d3� Z%e%Z&d4d5� Z'e'Z(d6d7� Z)e)Z*d8d9� Z+e+Z,d:d;� Z-e-Z.d<d=� Z/e/Z0d>d?� Z1d@dA� Z2dBdC� Z3dDdE� Z4dFdG� Z5e5Z6e5Z7dHdI� Z8e8Z9e8Z:dJdK� Z;e;Z<e;Z=dLdM� Z>e>Z?e>Z@dNdO� ZAdPdQ� ZBdRdS� ZCdTdU� ZDdVdW� ZEeEZFdXdY� ZGeGZHdZd[� ZId\d]� ZJd^d_� ZKd`da� ZLeLZMdbdc� ZNeNZOddde� ZPdfdg� ZQdhdi� ZRdjdk� ZSdldm� ZTeTZUdndo� ZVeVZWdpdq� ZXeXZYdrds� ZZdtdu� Z[dvdw� Z\dxdy� Z]dzd{� Z^d|d}� Z_d~d� Z`d�d�� Zad�d�� ZbebZcd�d�� ZdedZed�d�� ZfefZgefZhefZiefZjd�d�� Zkd�d�� Zld�S )�� Namespacez�Support for the Atom, RSS, RDF, and CDF feed formats.
10
11 The feed formats all share common elements, some of which have conflicting
12 interpretations. For simplicity, all of the base feed format support is
13 collected here.
14 � )
15 r zhttp://backend.userland.com/rssz%http://blogs.law.harvard.edu/tech/rsszhttp://purl.org/rss/1.0/z&http://my.netscape.com/rdf/simple/0.9/zhttp://example.com/newformat#zhttp://example.com/nechozhttp://purl.org/echo/zuri/of/echo/namespace#zhttp://purl.org/pie/zhttp://purl.org/atom/ns#zhttp://www.w3.org/2005/Atomz'http://purl.org/rss/1.0/modules/rss091#c C sf ddddd�}| j r| j �d�s1|�dd�}|�|�}|r"|| _ d S |�d �r,d
16 | _ d S d| _ d S d S )NZrss091uZrss092Zrss093Zrss094)z0.91z0.92z0.93z0.94Zrss�versionr z2.Zrss20)r �
17 startswith�get��self�attrs_dZ
18 versionmapZattr_versionr � r �QC:\Users\shubh\Videos\agent\nova\Lib\site-packages\feedparser/namespaces/_base.py�
19 _start_rss<