def resource_exists(name):
    """Return true if the given resource exists"""
    try:
        open_resource(name)
        return True
    except __HOLE__:
        return False
        

# Enable this when we get some translations?
# We want an i18n API that is useful to programs using Python's gettext
# module, as well as the Zope3 i18n package. Perhaps we should just provide
# the POT file and translations, and leave it up to callers to make use
# of them.
# 
# t = gettext.translation(
#         'pytz', os.path.join(os.path.dirname(__file__), 'locales'),
#         fallback=True
#         )
# def _(timezone_name):
#     """Translate a timezone name using the current locale, returning Unicode"""
#     return t.ugettext(timezone_name)
dataset/ETHPy150Open davemerwin/blue-channel/external_apps/pytz/__init__.py/resource_exists