Skip to content

Commit f60420a

Browse files
committed
Use raw strings to avoid SyntaxWarnings.
1 parent 3e3a72a commit f60420a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

github_release.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ def download_github(github_workflow):
7575
def checksum():
7676
""" compare downloaded archive with checksums """
7777
for f in os.listdir("_build"):
78-
if re.match("pythonbase-.+\.zip.md5$", f):
78+
if re.match(r"pythonbase-.+\.zip.md5$", f):
7979
md5 = os.path.join("_build", f)
80-
elif re.match("pythonbase-.+\.zip.sha256$", f):
80+
elif re.match(r"pythonbase-.+\.zip.sha256$", f):
8181
sha256 = os.path.join("_build", f)
82-
elif re.match("pythonbase-.+\.zip$", f):
82+
elif re.match(r"pythonbase-.+\.zip$", f):
8383
archive = os.path.join("_build", f)
8484
if md5 and sha256 and archive:
8585
m = hashlib.md5()
@@ -135,7 +135,7 @@ def upload(repo, tag, previous_tag, github_workflow):
135135
error_exit("Error creating release '%s' (%r)" % (tag, e))
136136

137137
items = [f for f in os.listdir("_build")
138-
if re.match("pythonbase-.+\.zip.*$", f) or f == "pythonbase.contents"]
138+
if re.match(r"pythonbase-.+\.zip.*$", f) or f == "pythonbase.contents"]
139139
if len(items) == 0:
140140
error_exit("Nothing found to upload")
141141
print("D: uploading items\n - %s" % "\n - ".join(items))

0 commit comments

Comments
 (0)