~ntt-pf-lab/nova/monkey_patch_notification

« back to all changes in this revision

Viewing changes to vendor/Twisted-10.0.0/twisted/python/test/deprecatedattributes.py

  • Committer: Jesse Andrews
  • Date: 2010-05-28 06:05:26 UTC
  • Revision ID: git-v1:bf6e6e718cdc7488e2da87b21e258ccc065fe499
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Import reflect first, so that circular imports (between deprecate and
 
2
# reflect) don't cause headaches.
 
3
import twisted.python.reflect
 
4
from twisted.python.versions import Version
 
5
from twisted.python.deprecate import deprecatedModuleAttribute
 
6
 
 
7
 
 
8
# Known module-level attributes.
 
9
DEPRECATED_ATTRIBUTE = 42
 
10
ANOTHER_ATTRIBUTE = 'hello'
 
11
 
 
12
 
 
13
version = Version('Twisted', 8, 0, 0)
 
14
message = 'Oh noes!'
 
15
 
 
16
 
 
17
deprecatedModuleAttribute(
 
18
    version,
 
19
    message,
 
20
    __name__,
 
21
    'DEPRECATED_ATTRIBUTE')