@@ -753,12 +753,12 @@ def splitpath(path):
753753 # we can skip the python source code as we'll just
754754 # use the compiled bytecode anyway..
755755 if filename [- 3 :] == ".py" and root [- 10 :] != "migrations" :
756- abs_filname = os .path .join (root , filename )
757- abs_pyc_filename = abs_filname + "c"
756+ abs_filename = os .path .join (root , filename )
757+ abs_pyc_filename = abs_filename + "c"
758758 if os .path .isfile (abs_pyc_filename ):
759759 # but only if the pyc is older than the py,
760760 # otherwise we'll deploy outdated code!
761- py_time = os .stat (abs_filname ).st_mtime
761+ py_time = os .stat (abs_filename ).st_mtime
762762 pyc_time = os .stat (abs_pyc_filename ).st_mtime
763763
764764 if pyc_time > py_time :
@@ -876,7 +876,7 @@ def get_cached_manylinux_wheel(self, package_name, package_version, disable_prog
876876 os .makedirs (cached_wheels_dir )
877877 else :
878878 # Check if we already have a cached copy
879- wheel_name = re .sub (r"[^\w\d.]+" , "_" , package_name , re .UNICODE )
879+ wheel_name = re .sub (r"[^\w\d.]+" , "_" , package_name , flags = re .UNICODE )
880880 wheel_file = f"{ wheel_name } -{ package_version } -*_x86_64.whl"
881881 wheel_path = os .path .join (cached_wheels_dir , wheel_file )
882882
0 commit comments