/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/store/text.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 18:10:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521181028-zn04pdfw0od9hfj3
Rename brzlib => breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
import gzip
26
26
import os
27
27
 
28
 
from brzlib import osutils
29
 
from brzlib.errors import BzrError, NoSuchFile, FileExists
30
 
import brzlib.store
31
 
from brzlib.trace import mutter
32
 
 
33
 
 
34
 
 
35
 
class TextStore(brzlib.store.TransportStore):
 
28
from breezy import osutils
 
29
from breezy.errors import BzrError, NoSuchFile, FileExists
 
30
import breezy.store
 
31
from breezy.trace import mutter
 
32
 
 
33
 
 
34
 
 
35
class TextStore(breezy.store.TransportStore):
36
36
    """Store that holds files indexed by unique names.
37
37
 
38
38
    Files can be added, but not modified once they are in.  Typically
44
44
 
45
45
    def _add_compressed(self, fn, f):
46
46
        from cStringIO import StringIO
47
 
        from brzlib.osutils import pumpfile
 
47
        from breezy.osutils import pumpfile
48
48
 
49
49
        if isinstance(f, basestring):
50
50
            f = StringIO(f)