Current Path : /usr/share/pyshared/twisted/python/test/ |
Current File : //usr/share/pyshared/twisted/python/test/deprecatedattributes.py |
# Import reflect first, so that circular imports (between deprecate and # reflect) don't cause headaches. import twisted.python.reflect from twisted.python.versions import Version from twisted.python.deprecate import deprecatedModuleAttribute # Known module-level attributes. DEPRECATED_ATTRIBUTE = 42 ANOTHER_ATTRIBUTE = 'hello' version = Version('Twisted', 8, 0, 0) message = 'Oh noes!' deprecatedModuleAttribute( version, message, __name__, 'DEPRECATED_ATTRIBUTE')