Skip to content

Commit

Permalink
Fix pylama linter failures for invalid escape characters for timestam…
Browse files Browse the repository at this point in the history
…p regex (#472)
  • Loading branch information
whimboo committed May 15, 2018
1 parent 9660b28 commit 272bc04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mozdownload/scraper.py
Expand Up @@ -524,7 +524,7 @@ def build_filename(self, binary):
try:
# Get exact timestamp of the build to build the local file name
folder = self.builds[self.build_index]
timestamp = re.search('([\d\-]+)-\D.*', folder).group(1)
timestamp = re.search(r'([\d\-]+)-\D.*', folder).group(1)
except Exception:
# If it's not available use the build's date
timestamp = self.date.strftime('%Y-%m-%d')
Expand Down

0 comments on commit 272bc04

Please sign in to comment.