|
314 | 314 |
|
315 | 315 | LOG_TEMPLATE = '(Build) [{project}:{version}] {msg}'
|
316 | 316 |
|
317 |
| -PROJECT_PK_REGEX = '(?:[-\w]+)' |
318 |
| -PROJECT_SLUG_REGEX = '(?:[-\w]+)' |
| 317 | +PROJECT_PK_REGEX = r'(?:[-\w]+)' |
| 318 | +PROJECT_SLUG_REGEX = r'(?:[-\w]+)' |
319 | 319 |
|
320 | 320 | GITHUB_REGEXS = [
|
321 |
| - re.compile('github.com/(.+)/(.+)(?:\.git){1}$'), |
322 |
| - re.compile('github.com/(.+)/(.+)'), |
323 |
| - re.compile('github.com:(.+)/(.+)\.git$'), |
| 321 | + re.compile(r'github.com/(.+)/(.+)(?:\.git){1}$'), |
| 322 | + re.compile(r'github.com/(.+)/(.+)'), |
| 323 | + re.compile(r'github.com:(.+)/(.+)\.git$'), |
324 | 324 | ]
|
325 | 325 | BITBUCKET_REGEXS = [
|
326 |
| - re.compile('bitbucket.org/(.+)/(.+)\.git$'), |
327 |
| - re.compile('@bitbucket.org/(.+)/(.+)\.git$'), |
328 |
| - re.compile('bitbucket.org/(.+)/(.+)/?'), |
329 |
| - re.compile('bitbucket.org:(.+)/(.+)\.git$'), |
| 326 | + re.compile(r'bitbucket.org/(.+)/(.+)\.git$'), |
| 327 | + re.compile(r'@bitbucket.org/(.+)/(.+)\.git$'), |
| 328 | + re.compile(r'bitbucket.org/(.+)/(.+)/?'), |
| 329 | + re.compile(r'bitbucket.org:(.+)/(.+)\.git$'), |
330 | 330 | ]
|
331 | 331 | GITLAB_REGEXS = [
|
332 |
| - re.compile('gitlab.com/(.+)/(.+)(?:\.git){1}$'), |
333 |
| - re.compile('gitlab.com/(.+)/(.+)'), |
334 |
| - re.compile('gitlab.com:(.+)/(.+)\.git$'), |
| 332 | + re.compile(r'gitlab.com/(.+)/(.+)(?:\.git){1}$'), |
| 333 | + re.compile(r'gitlab.com/(.+)/(.+)'), |
| 334 | + re.compile(r'gitlab.com:(.+)/(.+)\.git$'), |
335 | 335 | ]
|
336 | 336 | GITHUB_URL = (
|
337 | 337 | 'https://github.com/{user}/{repo}/'
|
|
0 commit comments