Skip to content

Commit d7ac150

Browse files
authored
Merge pull request #394 from huacchob/lxml-version-602
Lxml version 602
2 parents e9181e9 + 85af3f3 commit d7ac150

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

changes/393.dependencies

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Pinning lxml version to support >=4.6.2,<7

circuit_maintenance_parser/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def parse_html(
208208
def clean_line(line):
209209
"""Clean up of undesired characters from Html."""
210210
try:
211-
return line.text.strip()
211+
return line.text.strip().replace("\r\n", "\n").replace("\r", "\n")
212212
except AttributeError:
213213
return line.strip().replace("\r\n", "\n").replace("\r", "\n")
214214

poetry.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ click = ">=7.1, <9.0"
2626
pydantic = ">=1.10.4,<3"
2727
icalendar = "^5.0.0"
2828
bs4 = "^0.0.2"
29-
lxml = ">=6.0.2"
29+
lxml = ">=4.6.2,<7"
3030
geopy = "^2.1.0"
3131
timezonefinder = ">=6.0.1,<9.0.0"
3232
backoff = "^2.2.1"

0 commit comments

Comments
 (0)