Files
PyRIGS/zope/schema/_messageid.py
2014-12-07 17:32:25 +00:00

21 lines
840 B
Python

##############################################################################
#
# Copyright (c) 2000 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
try:
from zope.i18nmessageid import MessageFactory
except ImportError: # pragma: no cover
from zope.schema._compat import text_type as _
else: # pragma: no cover
_ = MessageFactory("zope")