~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/config.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-05-07 08:01:38 UTC
  • mfrom: (5187.2.12 549310-mandatory-whoami)
  • Revision ID: pqm@pqm.ubuntu.com-20100507080138-doe642wej2tu47t5
(parthm) trivial docstring fix to indicate when errors.NoWhoami is raised.

Show diffs side-by-side

added added

removed removed

Lines of Context:
260
260
        $BZR_EMAIL can be set to override this, then
261
261
        the concrete policy type is checked, and finally
262
262
        $EMAIL is examined.
263
 
        If none is found, a reasonable default is (hopefully)
264
 
        created.
 
263
        If no username can be found, errors.NoWhoami exception is raised.
265
264
 
266
265
        TODO: Check it's reasonably well-formed.
267
266
        """
280
279
        raise errors.NoWhoami()
281
280
 
282
281
    def ensure_username(self):
283
 
        """Raise BzrCommandError if username is not set.
 
282
        """Raise errors.NoWhoami if username is not set.
284
283
 
285
284
        This method relies on the username() function raising the error.
286
285
        """