diff options
author | Tobias Markmann <tm@ayena.de> | 2018-10-01 10:04:11 (GMT) |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2018-10-01 10:04:11 (GMT) |
commit | 78373f300882ebad10eda79eab7ee1e8a8d82b93 (patch) | |
tree | 41fe3f05990b79ee4d2c013f0d208c3d917171e8 /BuildTools/Copyrighter.py | |
parent | abd5ca5d4960765f25da426c3dd20e2316d75b59 (diff) | |
download | swift-78373f300882ebad10eda79eab7ee1e8a8d82b93.zip swift-78373f300882ebad10eda79eab7ee1e8a8d82b93.tar.bz2 |
Change ur literals to r, as ur is unsupported in Python 3
r literal is supported by both Python 2 and Python 3.
Test-Information:
Builds on Windows 10 with Python 3 and VS 2015.
Change-Id: I2210a1ba01a4bf3c175634adeb067f1f939a7e61
Diffstat (limited to 'BuildTools/Copyrighter.py')
-rwxr-xr-x | BuildTools/Copyrighter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BuildTools/Copyrighter.py b/BuildTools/Copyrighter.py index cfde98f..4c7bfeb 100755 --- a/BuildTools/Copyrighter.py +++ b/BuildTools/Copyrighter.py @@ -8,7 +8,7 @@ CONTRIBUTOR_LICENSE = "mit" LICENSE_DIR = "Documentation/Licenses" # The following regex parses license comment blocks and its part out of a complete source file. -reParseLicenseCommentBlocks = re.compile(ur'(\/\*\n\s\*\sCopyright \(c\) (?P<startYear>\d\d\d\d)(-(?P<endYear>\d\d\d\d))? (?P<author>[^\n\.]*)\.?\n.\* (?P<license>[^\n]*)\n \* (?P<seeMore>[^\n]+)\n *\*\/)') +reParseLicenseCommentBlocks = re.compile(r'(\/\*\n\s\*\sCopyright \(c\) (?P<startYear>\d\d\d\d)(-(?P<endYear>\d\d\d\d))? (?P<author>[^\n\.]*)\.?\n.\* (?P<license>[^\n]*)\n \* (?P<seeMore>[^\n]+)\n *\*\/)') class License : def __init__(self, name, file) : |