Browse Source

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

v3
Jonas Havelka 1 year ago
parent
commit
c89a982440
  1. 12
      seminar/utils.py

12
seminar/utils.py

@ -1,6 +1,5 @@
import datetime import datetime
from html.parser import HTMLParser
from django import views as DjangoViews from django import views as DjangoViews
from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes.models import ContentType
@ -14,17 +13,6 @@ import treenode.treelib as t
logger = logging.getLogger(__name__) 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): def histogram(seznam):
d = {} d = {}
for i in seznam: for i in seznam:

Loading…
Cancel
Save