@classmethod
    def load(cls, dirname=None, locales=None, domain=None):
        if locales is not None:
            if not isinstance(locales, (list, tuple)):
                locales = [locales]
            locales = [str(locale) for locale in locales]
        if not domain:
            domain = cls.DEFAULT_DOMAIN
        filename = gettext.find(domain, dirname, locales)
        if not filename:
            return NullTranslations()
        with open(filename, 'rb') as fp:
            return cls(fp=fp, domain=domain)
Returns ``os.chmod(path, mode)`` if `path` is legal.
dataset/ETHPy150Open lad1337/XDM/site-packages/babel/support.py/Translations.load--crossover with--dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/objserverfactory.py/ObjServer.chmod