__copyright__ = "Copyright (C) 2006-2024 PhiloSoft Design"
from calendar import _localized_month
-import cgi
+from html import escape
import locale
import sys, os
from urllib.parse import quote, urljoin
<li>��������� �������� �����������: NOT > AND > OR. ������ '()' ��������� ���������� ���������.</li>
</ul>
<p class="small">
-������� ���������: linux - �������ģ� ���������������
-�� �������� linux.html; linux&!audio - ������ ������ � ������� ���� ���
-linux � ��� ���� audio; linux and not audio - �� �� �����.
+������� ���������: Linux - �������ģ� ���������������
+�� �������� Linux.html; Linux&!Debian - ������ ������ � ������� ���� ���
+Linux � ��� ���� Debian; Linux and not Debian - �� �� �����.
</p>
<center>
-<form method=GET action="../../../cgi-bin/blog-ru/search-tags/search-tags.py">
+<form method=GET action="../../../cgi-bin/blog-ru/search-tags.cgi">
<input type=text name=q>
<input type=submit name=submit value="������">
</form>
def start_a(self, attrs):
self.accumulator += '<a'
for attrname, value in attrs:
- value = cgi.escape(value, True)
+ value = escape(value, True)
if attrname == 'href':
self.accumulator += ' href="%s"' % urljoin(self.base, value)
else:
def start_img(self, attrs):
self.accumulator += '<img'
for attrname, value in attrs:
- value = cgi.escape(value, True)
+ value = escape(value, True)
if attrname == 'src':
self.accumulator += ' src="%s"' % urljoin(self.base, value)
else: