Odstraněn nepoužívaný FirstTagParser (z seminar.utils)

This commit is contained in:
Jonas Havelka 2023-08-10 13:40:38 +02:00
parent 39afe79da7
commit c89a982440

View file

@ -1,6 +1,5 @@
import datetime
from html.parser import HTMLParser
from django import views as DjangoViews
from django.contrib.contenttypes.models import ContentType
@ -14,17 +13,6 @@ import treenode.treelib as t
logger = logging.getLogger(__name__)
class FirstTagParser(HTMLParser):
def __init__(self, *args, **kwargs):
self.firstTag = None
super().__init__(*args, **kwargs)
def handle_data(self, data):
if self.firstTag == None:
self.firstTag = data
def histogram(seznam):
d = {}
for i in seznam: