/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 breezy/iterablefile.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-03-25 11:54:30 UTC
  • mfrom: (6855.4.10 more-bees)
  • Revision ID: breezy.the.bot@gmail.com-20180325115430-75xnlbrmzjoomd83
Add more bees. In particular:

* for file ids
* for revision ids
* for file contents in build_tree_contents()

Merged from https://code.launchpad.net/~jelmer/brz/more-bees/+merge/337919

Show diffs side-by-side

added added

removed removed

Lines of Context:
132
132
 
133
133
    closed = property(lambda x: x._closed)
134
134
 
 
135
    def __enter__(self):
 
136
        return self
 
137
 
 
138
    def __exit__(self, exc_type, exc_val, exc_tb):
 
139
        # If there was an error raised, prefer the original one
 
140
        try:
 
141
            self.close()
 
142
        except:
 
143
            if exc_type is None:
 
144
                raise
 
145
        return False
 
146
 
135
147
    def flush(self):
136
148
        """No-op for standard compliance.
137
149
        >>> f = IterableFile([])