Fix regex invalid escape sequence with raw string
@@ -21,8 +21,8 @@ class FermiLATClass(BaseQuery):
"""
request_url = conf.url
- result_url_re = re.compile('The results of your query may be found at '
- '<a href="(https://fermi\.gsfc\.nasa\.gov/.*?)"')
+ result_url_re = re.compile(r'The results of your query may be found at '
+ r'<a href="(https://fermi\.gsfc\.nasa\.gov/.*?)"')
TIMEOUT = conf.timeout
def query_object_async(self, *args, **kwargs):
@@ -123,8 +123,8 @@ class GetFermilatDatafile:
(this doesn't need to be implemented as a class)
"""
- fitsfile_re = re.compile('<a href="(.*?)">Available</a>')
- fitsfile_re = re.compile('wget (https://fermi\.gsfc\.nasa\.gov/FTP/fermi/data/lat/queries/[A-Za-z0-9_]*.fits)')
+ fitsfile_re = re.compile(r'<a href="(.*?)">Available</a>')
+ fitsfile_re = re.compile(r'wget (https://fermi\.gsfc\.nasa\.gov/FTP/fermi/data/lat/queries/[A-Za-z0-9_]*.fits)')
# wget https://fermi.gsfc.nasa.gov/FTP/fermi/data/lat/queries/L1809182001077FA3883F37_SC00.fits
TIMEOUT = conf.retrieval_timeout
