/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/weavefile.py

  • Committer: Jelmer Vernooij
  • Date: 2011-12-19 10:58:39 UTC
  • mfrom: (6383 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6386.
  • Revision ID: jelmer@canonical.com-20111219105839-uji05ck4rkm1mj4j
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005 Canonical Ltd
 
1
# Copyright (C) 2005-2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
16
16
#
17
17
# Author: Martin Pool <mbp@canonical.com>
18
18
 
 
19
from __future__ import absolute_import
19
20
 
20
21
 
21
22
 
118
119
 
119
120
    from weave import WeaveFormatError
120
121
 
121
 
    lines = iter(f.readlines())
 
122
    try:
 
123
        lines = iter(f.readlines())
 
124
    finally:
 
125
        f.close()
122
126
 
123
127
    try:
124
128
        l = lines.next()