Rev 5217: (parthm) trivial docstring fix to indicate when errors.NoWhoami is raised. in file:///home/pqm/archives/thelove/bzr/%2Btrunk/
Canonical.com Patch Queue Manager
pqm at pqm.ubuntu.com
Fri May 7 09:01:41 BST 2010
At file:///home/pqm/archives/thelove/bzr/%2Btrunk/
------------------------------------------------------------
revno: 5217 [merge]
revision-id: pqm at pqm.ubuntu.com-20100507080138-doe642wej2tu47t5
parent: pqm at pqm.ubuntu.com-20100507063947-s3btnxxwxu0xzitt
parent: parth.malwankar at gmail.com-20100507063534-t0q1azutcw8dk5dq
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Fri 2010-05-07 09:01:38 +0100
message:
(parthm) trivial docstring fix to indicate when errors.NoWhoami is raised.
modified:
bzrlib/config.py config.py-20051011043216-070c74f4e9e338e8
=== modified file 'bzrlib/config.py'
--- a/bzrlib/config.py 2010-04-28 04:52:16 +0000
+++ b/bzrlib/config.py 2010-05-07 06:35:34 +0000
@@ -260,8 +260,7 @@
$BZR_EMAIL can be set to override this, then
the concrete policy type is checked, and finally
$EMAIL is examined.
- If none is found, a reasonable default is (hopefully)
- created.
+ If no username can be found, errors.NoWhoami exception is raised.
TODO: Check it's reasonably well-formed.
"""
@@ -280,7 +279,7 @@
raise errors.NoWhoami()
def ensure_username(self):
- """Raise BzrCommandError if username is not set.
+ """Raise errors.NoWhoami if username is not set.
This method relies on the username() function raising the error.
"""
More information about the bazaar-commits
mailing list