/usr/share/pyshared/keyring/py25compat.py is in python-keyring 0.9.2-0ubuntu0.12.04.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | """
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__]
|