/usr/share/pyshared/application/python/util.py is in python-application 1.2.8-1.
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 28 29 30 31 32 33 34 35 36 | # Copyright (C) 2006-2011 Dan Pascu. See LICENSE for details.
#
"""Miscellaneous utility functions and classes. This module is deprecated and will be removed in 1.3.0"""
__all__ = ['Singleton', 'Null', 'NullType']
import sys
class FakeUtil(object):
def __init__(self, module):
self.__module = module
def __getattribute__(self, name):
value = object.__getattribute__(self, '_FakeUtil__module').__getattribute__(name)
if name == 'Singleton':
import warnings
warnings.warn("importing Singleton from application.pyhton.util has been deprecated and will be removed in version 1.3.0. Singleton has been moved to application.python.types", DeprecationWarning)
elif name == 'NullTypeMeta':
import warnings
warnings.warn("importing NullTypeMeta from application.pyhton.util has been deprecated and will be removed in version 1.3.0. NullTypeMeta has been moved to application.python.types", DeprecationWarning)
elif name == 'NullType':
import warnings
warnings.warn("importing NullType from application.pyhton.util has been deprecated and will be removed in version 1.3.0. NullType has been moved to application.python.types", DeprecationWarning)
elif name == 'Null':
import warnings
warnings.warn("importing Null from application.pyhton.util has been deprecated and will be removed in version 1.3.0. Null has been moved to application.python", DeprecationWarning)
return value
fake_util = FakeUtil(sys.modules[__name__])
sys.modules[__name__] = fake_util
del FakeUtil, fake_util, sys
from application.python.types import Singleton, NullTypeMeta, NullType
from application.python import Null
|