/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/util/configobj/configobj.py

  • Committer: Blake Winton
  • Date: 2007-10-16 17:37:43 UTC
  • mto: This revision was merged to the branch mainline in revision 2921.
  • Revision ID: bwinton@latte.ca-20071016173743-rbozxk906e8cbm9x
Implemented suggestions from John Arbash Meinel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1309
1309
            reset_comment = True
1310
1310
            # first we check if it's a section marker
1311
1311
            mat = self._sectionmarker.match(line)
1312
 
##            sys.stderr.write(sline + ' ' + mat + '\n')
 
1312
##            sys.stderr.write('%s %s\n' % (sline, mat))
1313
1313
            if mat is not None:
1314
1314
                # is a section line
1315
1315
                (indent, sect_open, sect_name, sect_close, comment) = (
1368
1368
            # it's not a section marker,
1369
1369
            # so it should be a valid ``key = value`` line
1370
1370
            mat = self._keyword.match(line)
1371
 
##            sys.stderr.write(sline + ' ' + mat + '\n')
 
1371
##            sys.stderr.write('%s %s\n' % (sline, mat))
1372
1372
            if mat is not None:
1373
1373
                # is a keyword value
1374
1374
                # value will include any inline comment
1408
1408
                this_section[key] = value
1409
1409
                this_section.inline_comments[key] = comment
1410
1410
                this_section.comments[key] = comment_list
1411
 
##                sys.stderr.write(key + ' ' + this_section[key] + '\n')
 
1411
##                sys.stderr.write('%s %s\n' % (key, this_section[key]))
1412
1412
##                if this_section.name is not None:
1413
1413
##                    sys.stderr.write(this_section + '\n')
1414
1414
##                    sys.stderr.write(this_section.parent + '\n')