Skip to content

Commit 239acd8

Browse files
authored
Merge pull request astropy#2874 from bsipocz/DEP_Reader_deprecation
DEP: removing deprecated astropy usage
2 parents ba4862f + 35b5b3c commit 239acd8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

astroquery/nist/core.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import re
66

77
import astropy.units as u
8-
import astropy.io.ascii as asciitable
8+
from astropy.table import Table
99

1010
from ..query import BaseQuery
1111
from ..utils import async_to_sync, prepend_docstr_nosections
@@ -172,8 +172,7 @@ def _parse_result(self, response, *, verbose=False):
172172
table = _strip_blanks(pre)
173173
table = links_re.sub(r'\1', table)
174174
table = html.unescape(table)
175-
table = asciitable.read(table, Reader=asciitable.FixedWidth,
176-
data_start=3, delimiter='|')
175+
table = Table.read(table, format='ascii.fixed_width', data_start=3, delimiter='|')
177176
return table
178177
except Exception as ex:
179178
self.response = response

0 commit comments

Comments
 (0)