summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Copeland <ben.copeland@linaro.org>2018-11-27 10:03:28 +0000
committerBenjamin Copeland <ben.copeland@linaro.org>2018-11-27 10:03:28 +0000
commit7702d6e540d4d6a8ec97db684e792947e61de0df (patch)
tree127349da24fe0379a99a43cc8d30fe52fbc74b0f
parent84bd6c705cb12aca551c0e0bc2d218ea1a6b3b1f (diff)
downloadpatchwork-tools-7702d6e540d4d6a8ec97db684e792947e61de0df.tar.gz
Flake: Fix flake8 warnings
Change-Id: I2829975dcbaff41cc8b6d0f18d08accf902b1285
-rwxr-xr-ximport_emails.py2
-rwxr-xr-xlinaro_metrics/sync_github_changes.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/import_emails.py b/import_emails.py
index 2f71b29..dee1e01 100755
--- a/import_emails.py
+++ b/import_emails.py
@@ -53,7 +53,7 @@ def move_message(mail, uid, folder):
# put in proper folder and move out of inbox
status, _ = mail.uid('copy', uid, folder)
assert status == 'OK'
- status, _ = mail.uid('store', uid, '+FLAGS', '(\Deleted)')
+ status, _ = mail.uid('store', uid, '+FLAGS', r'(\Deleted)')
assert status == 'OK'
diff --git a/linaro_metrics/sync_github_changes.py b/linaro_metrics/sync_github_changes.py
index b581ecc..b5eb0ec 100755
--- a/linaro_metrics/sync_github_changes.py
+++ b/linaro_metrics/sync_github_changes.py
@@ -105,7 +105,7 @@ def get_pull_requests(owner, repo, last_update=None):
url = resp.headers.get('link')
if url:
# find the <$URL>; rel="next" to get the next page of results
- m = re.match('<(\S+)>; rel="next"', url)
+ m = re.match(r'<(\S+)>; rel="next"', url)
url = None
if m:
url = m.group(1)