Skip to content

Commit 1c8f8a1

Browse files
committed
String has to remain raw
1 parent 6cd5622 commit 1c8f8a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

astroquery/ipac/ned/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ def _extract_image_urls(self, html_in, file_format='fits'):
518518
'VO-table': 'VOTable'}
519519

520520
pattern = re.compile(
521-
f'<a\s+href\s*?="?\s*?(.+?{extensions[file_format]})"?\s*?>\s*?(?:Retrieve|{names[file_format]})</a>',
521+
fr'<a\s+href\s*?="?\s*?(.+?{extensions[file_format]})"?\s*?>\s*?(?:Retrieve|{names[file_format]})</a>',
522522
re.IGNORECASE)
523523
matched_urls = pattern.findall(html_in)
524524
url_list = [base_url + img_url for img_url in matched_urls]

0 commit comments

Comments
 (0)