Skip to content

Commit

Permalink
Explicitly set BeautifulSoup parser to html.parser to avoid warning
Browse files Browse the repository at this point in the history
  • Loading branch information
anchitjain1234 committed Feb 1, 2016
1 parent 12e9367 commit 1838bae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astropy/io/ascii/html.py
Expand Up @@ -83,7 +83,7 @@ def process_lines(self, lines):
'installed to read HTML tables')

if 'parser' not in self.html:
soup = BeautifulSoup('\n'.join(lines))
soup = BeautifulSoup('\n'.join(lines), "html.parser")
else: # use a custom backend parser
soup = BeautifulSoup('\n'.join(lines), self.html['parser'])
tables = soup.find_all('table')
Expand Down

0 comments on commit 1838bae

Please sign in to comment.