@@ -75,11 +75,11 @@ def download_github(github_workflow):
7575def 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