Skip to content

Commit dfbd9a7

Browse files
committed
fix: add missing imports to resolve flake8 F821 errors
1 parent 7c84314 commit dfbd9a7

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

corpus_module/corpus.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
from typing import List, Dict, Optional, Any, Union
88
from collections import defaultdict
99
import json
10+
import lxml.etree as ET
11+
from corpus_module.query import CorpusQuery
1012

1113
logger = logging.getLogger(__name__)
1214

corpus_module/search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def search_paras_with_id_and_create_dict(cls, all_hits_dict: Dict, infile: Union
9292
assert infile_path.exists(), f"{infile} does not exist"
9393

9494
try:
95-
html_tree = lxml.etree.parse(str(infile), HTMLParser())
95+
html_tree = ET.parse(str(infile), HTMLParser())
9696
except Exception as e:
9797
logger.error(f"Error parsing {infile}: {e}")
9898
return []

pygetpapers/extensions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11

2+
import configparser
3+
import logging
4+
5+
logger = logging.getLogger(__name__)
26

37
class ConfigReader():
48
"""

0 commit comments

Comments
 (0)