Skip to content

Commit

Permalink
remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanvir1337x committed Nov 27, 2024
1 parent ddcf596 commit 0d1c6b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions stuff/gapps.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,7 @@ def copy_11(self):
def copy_13(self):
src_dir = os.path.join(self.extract_to, "system")
dst_dir = os.path.join(self.copy_dir, self.partition)
for root, dirs, files in os.walk(src_dir):
dir_name = os.path.basename(root)
for root, _, files in os.walk(src_dir):
# 遍历文件
for file in files:
src_file_path = os.path.join(root, file)
Expand Down
2 changes: 1 addition & 1 deletion stuff/magisk.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def copy(self):
Logger.info("Copying magisk libs now ...")

lib_dir = os.path.join(self.extract_to, "lib", self.arch[0])
for parent, dirnames, filenames in os.walk(lib_dir):
for _, _, filenames in os.walk(lib_dir):
for filename in filenames:
o_path = os.path.join(lib_dir, filename)
filename = re.search(r"lib(.*)\.so", filename)
Expand Down
2 changes: 1 addition & 1 deletion stuff/microg.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def copy(self):
sub_arch = "x86"
if self.arch[1] == 64:
arch = f"{sub_arch}{'' if sub_arch=='arm' else '_'}64"
for root, dirs, files in os.walk(src_dir):
for root, _, files in os.walk(src_dir):
flag = False
dir_name = os.path.basename(root)
# 遍历文件
Expand Down

0 comments on commit 0d1c6b0

Please sign in to comment.