From c89a9824405e553fd0cce8c8885903e365349e3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Thu, 10 Aug 2023 13:40:38 +0200 Subject: [PATCH] =?UTF-8?q?Odstran=C4=9Bn=20nepou=C5=BE=C3=ADvan=C3=BD=20F?= =?UTF-8?q?irstTagParser=20(z=20seminar.utils)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/utils.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/seminar/utils.py b/seminar/utils.py index 20612a70..04c8d1c4 100644 --- a/seminar/utils.py +++ b/seminar/utils.py @@ -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: