flag_dir --> flags_dir

In some places `build_svg_dir()` the variable is `flag_dir` (singular) and in others `flags_dir` (plural).  Settled on plural everywhere to match the function parameter name.
pull/158/head
cclauss 2017-08-26 20:21:46 +02:00 committed by GitHub
parent 8a6530b7b2
commit ef5cd135ed
1 changed files with 3 additions and 3 deletions

View File

@ -96,14 +96,14 @@ def copy_with_rename(src_dir, dst_dir, accept_pred=None, rename=None):
def build_svg_dir(dst_dir, clean=False, emoji_dir='', flags_dir=''): def build_svg_dir(dst_dir, clean=False, emoji_dir='', flags_dir=''):
"""Copies/renames files from emoji_dir and then flag_dir, giving them the """Copies/renames files from emoji_dir and then flags_dir, giving them the
standard format and prefix ('emoji_u' followed by codepoints expressed in hex standard format and prefix ('emoji_u' followed by codepoints expressed in hex
separated by underscore). If clean, removes the target dir before proceding. separated by underscore). If clean, removes the target dir before proceding.
If either emoji_dir or flag_dir are empty, skips them.""" If either emoji_dir or flags_dir are empty, skips them."""
dst_dir = tool_utils.ensure_dir_exists(dst_dir, clean=clean) dst_dir = tool_utils.ensure_dir_exists(dst_dir, clean=clean)
if not emoji_dir and not flag_dir: if not emoji_dir and not flags_dir:
logging.warning('Nothing to do.') logging.warning('Nothing to do.')
return return