utils.py 545 B

123456789101112131415
  1. """
  2. Module is just here for compatibility reasons, and will be removed in a future release.
  3. Importing this will cause a DeprecationWarning.
  4. """
  5. from wtforms.i18n import (messages_path, get_builtin_gnu_translations, get_translations, DefaultTranslations)
  6. import warnings
  7. __all__ = ('messages_path', 'get_builtin_gnu_translations', 'get_translations', 'DefaultTranslations')
  8. warnings.warn(
  9. 'i18n utils have been merged into core, and this module will go away in WTForms 3.0',
  10. category=DeprecationWarning, stacklevel=2
  11. )