Skip to content

Commit 2609b57

Browse files
committed
Remove degree sign. Simplify import failure
1 parent dfc6f64 commit 2609b57

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

mathics/builtin/fileformats/htmlformat.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@
2323

2424
try:
2525
import lxml.html as lhtml
26-
27-
lhtml_available = True
2826
except ImportError:
29-
lhtml_available = False
27+
pass
3028

3129

3230
def node_to_xml_element(node, strip_whitespace=True):
@@ -250,7 +248,7 @@ def traverse(parent):
250248
class DataImport(_DataImport):
251249
"""
252250
>> Import["ExampleData/PrimeMeridian.html", "Data"][[1, 1, 2, 3]]
253-
= {Washington, D.C., 77°03′56.07″ W (1897) or 77°04′02.24″ W (NAD 27) or 77°04′01.16″ W (NAD 83), New Naval Observatory meridian}
251+
= {Washington, D.C., 77...03′56.07″ W (1897) or 77...04′02.24″ W (NAD 27) or 77...04′01.16″ W (NAD 83), New Naval Observatory meridian}
254252
255253
#> Length[Import["ExampleData/PrimeMeridian.html", "Data"]]
256254
= 3

0 commit comments

Comments
 (0)