Your IP : 172.28.240.42


Current Path : /usr/share/pyshared/keyring/
Upload File :
Current File : //usr/share/pyshared/keyring/py25compat.py

"""
Python 2.5 (and earlier) compatibility support. Remove this module when Python
2.5 compatibility is no longer required.
"""

try:
    import json
except ImportError:
    try:
        import simplejson as json
    except ImportError:
        json = None

try:
    import abc
except ImportError:
    class ABCMeta(type):
        pass

    def abstractmethod(funcobj):
        return funcobj

    def abstractproperty(funcobj):
        return property(funcobj)

    # here's a little trick to treat this module as 'abc'
    abc = __import__('sys').modules[__name__]