~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/config.py

  • Committer: Jelmer Vernooij
  • Date: 2011-12-15 11:53:48 UTC
  • mto: This revision was merged to the branch mainline in revision 6375.
  • Revision ID: jelmer@samba.org-20111215115348-murs91ipn8jbw6y0
Add tests for default_email behaviour.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1635
1635
 
1636
1636
def default_email():
1637
1637
    v = os.environ.get('BZR_EMAIL')
1638
 
    if value:
 
1638
    if v:
1639
1639
        return v.decode(osutils.get_user_encoding())
1640
1640
    v = os.environ.get('EMAIL')
1641
1641
    if v: