Current Path : /usr/lib/python2.7/dist-packages/keyring/ |
Current File : //usr/lib/python2.7/dist-packages/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__]