@@ -75,11 +75,11 @@ def download_github(github_workflow):
75
75
def checksum ():
76
76
""" compare downloaded archive with checksums """
77
77
for f in os .listdir ("_build" ):
78
- if re .match ("pythonbase-.+\.zip.md5$" , f ):
78
+ if re .match (r "pythonbase-.+\.zip.md5$" , f ):
79
79
md5 = os .path .join ("_build" , f )
80
- elif re .match ("pythonbase-.+\.zip.sha256$" , f ):
80
+ elif re .match (r "pythonbase-.+\.zip.sha256$" , f ):
81
81
sha256 = os .path .join ("_build" , f )
82
- elif re .match ("pythonbase-.+\.zip$" , f ):
82
+ elif re .match (r "pythonbase-.+\.zip$" , f ):
83
83
archive = os .path .join ("_build" , f )
84
84
if md5 and sha256 and archive :
85
85
m = hashlib .md5 ()
@@ -135,7 +135,7 @@ def upload(repo, tag, previous_tag, github_workflow):
135
135
error_exit ("Error creating release '%s' (%r)" % (tag , e ))
136
136
137
137
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" ]
139
139
if len (items ) == 0 :
140
140
error_exit ("Nothing found to upload" )
141
141
print ("D: uploading items\n - %s" % "\n - " .join (items ))
0 commit comments