mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 23:42:37 +03:00
standardize os.walk() var names based on Python 3.5 docs
There were multiple conventions used in the code, but mostly it was already using the convention from the docs, so this converts things to using that convention: https://docs.python.org/3/library/os.html#os.walk
This commit is contained in:
parent
96e71bfdb3
commit
cb10f0df09
7 changed files with 35 additions and 35 deletions
|
@ -1022,9 +1022,9 @@ def retrieve_string(app_dir, string, xmlfiles=None):
|
|||
os.path.join(app_dir, 'res'),
|
||||
os.path.join(app_dir, 'src', 'main', 'res'),
|
||||
]:
|
||||
for r, d, f in os.walk(res_dir):
|
||||
if os.path.basename(r) == 'values':
|
||||
xmlfiles += [os.path.join(r, x) for x in f if x.endswith('.xml')]
|
||||
for root, dirs, files in os.walk(res_dir):
|
||||
if os.path.basename(root) == 'values':
|
||||
xmlfiles += [os.path.join(root, x) for x in files if x.endswith('.xml')]
|
||||
|
||||
name = string[len('@string/'):]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue