Rev 5803: Fix use of none where neither is required. in file:///home/vila/src/bzr/experimental/config/

Vincent Ladeuil v.ladeuil+lp at free.fr
Tue May 31 09:39:35 UTC 2011


At file:///home/vila/src/bzr/experimental/config/

------------------------------------------------------------
revno: 5803
revision-id: v.ladeuil+lp at free.fr-20110531093935-syv7absho4lols8s
parent: v.ladeuil+lp at free.fr-20110531082528-72jeiuiied2rfv3t
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: config-lock-remote
timestamp: Tue 2011-05-31 11:39:35 +0200
message:
  Fix use of none where neither is required.
-------------- next part --------------
=== modified file 'bzrlib/tests/test_config.py'
--- a/bzrlib/tests/test_config.py	2011-05-30 14:55:58 +0000
+++ b/bzrlib/tests/test_config.py	2011-05-31 09:39:35 +0000
@@ -90,15 +90,15 @@
     :param server_class: The server associated with the ``transport_class``
         above.
 
-    Either both or none of ``transport_class`` and ``server_class`` should be
-    specified.
+    Either both or neither of ``transport_class`` and ``server_class`` should
+    be specified.
     """
     if transport_class is not None and server_class is not None:
         test.transport_class = transport_class
         test.transport_server = server_class
     elif not (transport_class is None and server_class is None):
         raise AssertionError('Specify both ``transport_class`` and '
-                             '``server_class`` or none of them')
+                             '``server_class`` or neither of them')
     if getattr(test, 'backing_branch', None) is None:
         # First call, let's build the branch on disk
         test.backing_branch = test.make_branch(relpath)



More information about the bazaar-commits mailing list