~vcs-imports/pybabel/trunk

« back to all changes in this revision

Viewing changes to babel/support.py

  • Committer: fschwarz
  • Date: 2012-08-20 19:24:03 UTC
  • Revision ID: svn-v4:59ecc08e-a131-0410-9ea7-d4c0f28ac310:trunk:651
".load()" (babel.support.Translations) now returns Babel's NullTranslation (babel.support.NullTranslation) instead of gettext.NullTranslations

Show diffs side-by-side

added added

removed removed

Lines of Context:
555
555
            domain = cls.DEFAULT_DOMAIN
556
556
        filename = gettext.find(domain, dirname, locales)
557
557
        if not filename:
558
 
            return gettext.NullTranslations()
 
558
            return NullTranslations()
559
559
        return cls(fileobj=open(filename, 'rb'), domain=domain)
560
560
 
561
561
    def __repr__(self):