Odstraněn nepoužívaný FirstTagParser (z seminar.utils)
This commit is contained in:
parent
39afe79da7
commit
c89a982440
1 changed files with 0 additions and 12 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue