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:
Hans-Christoph Steiner 2017-09-14 08:44:43 +02:00
parent 96e71bfdb3
commit cb10f0df09
7 changed files with 35 additions and 35 deletions

View file

@ -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/'):]