~bzr-pqm/bzr/2.3

« back to all changes in this revision

Viewing changes to bzrlib/bzrdir.py

  • Committer: Jelmer Vernooij
  • Date: 2012-03-27 20:39:56 UTC
  • mfrom: (4797.91.1 2.1-feature-flags)
  • mto: This revision was merged to the branch mainline in revision 5666.
  • Revision ID: jelmer@samba.org-20120327203956-tsjypc7mhi9173d6
Merge test fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
    required feature is present.
102
102
    """
103
103
    lines = text.splitlines(True)
104
 
    firstline = lines.pop(0)
 
104
    try:
 
105
        firstline = lines.pop(0)
 
106
    except IndexError:
 
107
        raise errors.UnknownFormatError(format=text, kind='')
105
108
    for lineno, line in enumerate(lines):
106
109
        try:
107
110
            (necessity, feature) = line.split(" ", 1)