~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/config.py

  • Committer: Haw Loeung (hloeung)
  • Date: 2012-07-20 04:29:17 UTC
  • mto: This revision was merged to the branch mainline in revision 6542.
  • Revision ID: haw.loeung@canonical.com-20120720042917-ul3h5fw63y4aubit
[hloeung] Only read the first line from /etc/mailname - LP bug #932515.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1575
1575
    except (IOError, OSError), e:
1576
1576
        return None
1577
1577
    try:
1578
 
        domain = f.read().strip()
 
1578
        domain = f.readline().strip()
1579
1579
        return domain
1580
1580
    finally:
1581
1581
        f.close()