make _ always be the gettext function, nothing else

This avoids hard bugs where the _() function gets overidden by a str or
something else.
This commit is contained in:
Hans-Christoph Steiner 2017-10-24 16:48:42 +02:00
parent dd6d4b2012
commit ffc91e301a
4 changed files with 7 additions and 7 deletions

View file

@ -824,7 +824,7 @@ def insert_localized_app_metadata(apps):
locale = segments[-2]
destdir = os.path.join('repo', packageName, locale)
for f in glob.glob(os.path.join(root, d, '*.*')):
_, extension = common.get_extension(f)
_ignored, extension = common.get_extension(f)
if extension in ALLOWED_EXTENSIONS:
screenshotdestdir = os.path.join(destdir, d)
os.makedirs(screenshotdestdir, mode=0o755, exist_ok=True)