Rev 5005: Fix all uses of _CompatabilityThunkFeature. in file:///home/vila/src/bzr/bugs/516934-no-apport/

Vincent Ladeuil v.ladeuil+lp at free.fr
Thu Feb 4 10:20:29 GMT 2010


At file:///home/vila/src/bzr/bugs/516934-no-apport/

------------------------------------------------------------
revno: 5005
revision-id: v.ladeuil+lp at free.fr-20100204102029-7xx95sw81z5lsirp
parent: v.ladeuil+lp at free.fr-20100204090937-bjsmdktvv8mhlzpa
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: 516934-no-apport
timestamp: Thu 2010-02-04 11:20:29 +0100
message:
  Fix all uses of _CompatabilityThunkFeature.
  
  * bzrlib/tests/__init__.py
  (ParamikoFeature, SubUnitFeature): Use the new signature.
-------------- next part --------------
=== modified file 'bzrlib/tests/__init__.py'
--- a/bzrlib/tests/__init__.py	2010-02-04 09:09:37 +0000
+++ b/bzrlib/tests/__init__.py	2010-02-04 10:20:29 +0000
@@ -4195,8 +4195,9 @@
 
 # This is kept here for compatibility, it is recommended to use
 # 'bzrlib.tests.feature.paramiko' instead
-ParamikoFeature = _CompatabilityThunkFeature('bzrlib.tests.features',
-    'paramiko', 'bzrlib.tests.ParamikoFeature', deprecated_in((2,1,0)))
+ParamikoFeature = _CompatabilityThunkFeature(
+    deprecated_in((2,1,0)),
+    'bzrlib.tests.features', 'ParamikoFeature', 'paramiko')
 
 
 def probe_unicode_in_user_encoding():
@@ -4364,8 +4365,9 @@
 
 
 # Kept for compatibility, use bzrlib.tests.features.subunit instead
-SubUnitFeature = _CompatabilityThunkFeature('bzrlib.tests.features', 'subunit',
-    'bzrlib.tests.SubUnitFeature', deprecated_in((2,1,0)))
+SubUnitFeature = _CompatabilityThunkFeature(
+    deprecated_in((2,1,0)),
+    'bzrlib.tests.features', 'SubUnitFeature', 'subunit')
 # Only define SubUnitBzrRunner if subunit is available.
 try:
     from subunit import TestProtocolClient

=== modified file 'bzrlib/tests/features.py'
--- a/bzrlib/tests/features.py	2010-02-04 09:09:37 +0000
+++ b/bzrlib/tests/features.py	2010-02-04 10:20:29 +0000
@@ -22,8 +22,7 @@
 apport = tests.ModuleAvailableFeature('apport')
 ApportFeature = tests._CompatabilityThunkFeature(
     deprecated_in((2, 2, 0)),
-    'bzrlib.tests.features',
-    'ApportFeature', 'apport')
+    'bzrlib.tests.features', 'ApportFeature', 'apport')
 paramiko = tests.ModuleAvailableFeature('paramiko')
 pycurl = tests.ModuleAvailableFeature('pycurl')
 subunit = tests.ModuleAvailableFeature('subunit')



More information about the bazaar-commits mailing list