summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2018-10-01 10:04:11 (GMT)
committerTobias Markmann <tm@ayena.de>2018-10-01 10:04:11 (GMT)
commit78373f300882ebad10eda79eab7ee1e8a8d82b93 (patch)
tree41fe3f05990b79ee4d2c013f0d208c3d917171e8 /BuildTools/ProjectCopyrightSummary.py
parentabd5ca5d4960765f25da426c3dd20e2316d75b59 (diff)
downloadswift-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/ProjectCopyrightSummary.py')
-rwxr-xr-xBuildTools/ProjectCopyrightSummary.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BuildTools/ProjectCopyrightSummary.py b/BuildTools/ProjectCopyrightSummary.py
index 6e2d824..f6b18a0 100755
--- a/BuildTools/ProjectCopyrightSummary.py
+++ b/BuildTools/ProjectCopyrightSummary.py
@@ -17,7 +17,7 @@ def CopyrightNames(filename):
names = []
with open(filename, 'r') as file:
data = file.read()
- p = re.compile(ur'\* Copyright.*\d\d\d\d (.*?)\.?$', re.MULTILINE)
+ p = re.compile(r'\* Copyright.*\d\d\d\d (.*?)\.?$', re.MULTILINE)
names = re.findall(p, data)
return names