File: //usr/lib/python3/dist-packages/trac/wiki/__pycache__/interwiki.cpython-310.pyc
o
�k�`' � @ s� d dl Z d dlmZ d dlmZ d dlT d dlmZ d dlm Z d dl
mZmZ d dl
mZmZmZ d d lmZ d d
lmZ G dd� de�ZdS )
� N)�cached)�
ConfigSection)�*)�lazy)�tag)�_�N_)�IWikiChangeListener�IWikiMacroProvider�
WikiSystem)�
WikiParser)�"split_url_into_path_query_fragmentc @ s� e Zd ZdZeee� edd�ZdZ e
�dej
e
j�Ze
�d�Zdd� Zd d
� Zdd� Zd
d� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zedd� �Zdd� Zdd � Zd!d"� Zd#d$� Z e!d%d&� �Z"d'S )(�InterWikiMapzInterWiki map manager.� interwikia Every option in the `[interwiki]` section defines one InterWiki
prefix. The option name defines the prefix. The option value defines
the URL, optionally followed by a description separated from the URL
by whitespace. Parametric URLs are supported as well.
'''Example:'''
{{{
[interwiki]
MeatBall = http://www.usemod.com/cgi-bin/mb.pl?
PEP = http://www.python.org/peps/pep-$1.html Python Enhancement Proposal $1
tsvn = tsvn: Interact with TortoiseSvn
}}}
�InterMapTxtz#(%s)[ \t]+([^ \t]+)(?:[ \t]+#(.*))?z\$\dc C s |� � | jv S �N)�upper�
interwiki_map��self�ns� r �5/usr/lib/python3/dist-packages/trac/wiki/interwiki.py�__contains__9 � zInterWikiMap.__contains__c C s | j |�� S r )r r r r r r �__getitem__<