Welcome to mirror list, hosted at ThFree Co, Russian Federation.

interface.py « pyxmpp - github.com/Jajcus/pyxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 708bf6a292f5f0c74d8b6e3fd6730f19970a937e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#
# (C) Copyright 2006 Jacek Konieczny <jajcus@jajcus.net>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License Version
# 2.1 as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#

"""Interface API.

If zope.interface is available this module will be its equivalent, otherwise
minimum interface API (partially compatible with zope.interface) will be
defined here. 

When full ZopeInterfaces API is needed impoer zope.interface instead of this module."""


try:
    from zope.interface import Interface, Attribute, providedBy, implementedBy, implements
except ImportError:
    from pyxmpp.interface_micro_impl import Interface, Attribute, providedBy, implementedBy, implements


__all__ = ("Interface", "Attribute", "providedBy", "implementedBy", "implements")

# vi: sts=4 et sw=4