which should be printable.
"""
link_dir = link_dir.rstrip(os.path.sep)
- link_parent_dir = os.path.split(link_dir)[0]
+ link_parent_dir = os.path.dirname(link_dir)
results = []
def locale_to_lower_upper(locale):
"""
- Take a locale, regardless of style, and format it like "en-us"
+ Take a locale, regardless of style, and format it like "en-US"
"""
if '-' in locale:
lang, country = locale.split('-', 1)
def locale_to_lower_lower(locale):
"""
- Take a locale, regardless of style, and format it like "en_US"
+ Take a locale, regardless of style, and format it like "en_us"
"""
if '_' in locale:
lang, country = locale.split('_', 1)