Skip to content

Commit

Permalink
Merge pull request #18 from hirdrac/master
Browse files Browse the repository at this point in the history
python 3.12 warning fix & minor cleanup
  • Loading branch information
goblinhack authored Nov 29, 2023
2 parents a782e7f + 607e9c4 commit a8d4b79
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions build/ramdisk.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@
count += 1

rec, orig_filename = filename
c_filename = orig_filename
c_filename = re.sub("-", "_", c_filename)
c_filename = re.sub("\.", "_", c_filename)
c_filename = re.sub(r'[\-\.]', "_", orig_filename)
rel_path_filename = os.path.join(folder, orig_filename)

with open("src/ramdisk_data_{}.S".format(ram_file), "a") as myfile:
Expand Down Expand Up @@ -151,9 +149,7 @@
count += 1

rec, orig_filename = filename
c_filename = orig_filename
c_filename = re.sub("-", "_", c_filename)
c_filename = re.sub("\.", "_", c_filename)
c_filename = re.sub(r'[\-\.]', "_", orig_filename)
rel_path_filename = os.path.join(folder, orig_filename)

myfile.write(" {\n")
Expand Down

0 comments on commit a8d4b79

Please sign in to comment.