Skip to content

Commit dca3e08

Browse files
committed
Use raw strings where required by flake8
1 parent f598e02 commit dca3e08

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

src/github3/api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def gists_by(username, number=-1, etag=None):
309309
def issues_on(owner, repository, milestone=None, state=None, assignee=None,
310310
mentioned=None, labels=None, sort=None, direction=None,
311311
since=None, number=-1, etag=None):
312-
"""Iterate over issues on owner/repository.
312+
r"""Iterate over issues on owner/repository.
313313
314314
.. deprecated:: 1.2.0
315315

src/github3/github.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232

3333
_pubsub_re = re.compile(
34-
'https?://[\w\d\-\.\:]+/\w[\w-]+\w/[\w\._-]+/events/\w+'
34+
r'https?://[\w\d\-\.\:]+/\w[\w-]+\w/[\w\._-]+/events/\w+'
3535
)
3636

3737

src/github3/users.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def following(self, number=-1, etag=None):
404404
return self._iter(int(number), url, ShortUser, etag=etag)
405405

406406
def gpg_keys(self, number=-1, etag=None):
407-
"""Iterate over the GPG keys of this user.
407+
r"""Iterate over the GPG keys of this user.
408408
409409
.. versionadded:: 1.2.0
410410

src/github3/utils.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@
77
from requests import compat
88

99
# with thanks to https://code.google.com/p/jquery-localtime/issues/detail?id=4
10-
ISO_8601 = re.compile("^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[0-1]|0"
11-
"[1-9]|[1-2][0-9])(T(2[0-3]|[0-1][0-9]):([0-5][0-9]):([0"
12-
"-5][0-9])(\.[0-9]+)?(Z|[+-](?:2[0-3]|[0-1][0-9]):[0-5]["
13-
"0-9])?)?$")
10+
ISO_8601 = re.compile(
11+
r"^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[0-1]|0"
12+
r"[1-9]|[1-2][0-9])(T(2[0-3]|[0-1][0-9]):([0-5][0-9]):([0"
13+
r"-5][0-9])(\.[0-9]+)?(Z|[+-](?:2[0-3]|[0-1][0-9]):[0-5]["
14+
r"0-9])?)?$"
15+
)
1416

1517

1618
def timestamp_parameter(timestamp, allow_none=True):

0 commit comments

Comments
 (0)