~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/memory.py

  • Committer: Jelmer Vernooij
  • Date: 2011-12-19 13:23:58 UTC
  • mto: This revision was merged to the branch mainline in revision 6386.
  • Revision ID: jelmer@canonical.com-20111219132358-uvs5a6y92gomzacd
Move importing from future until after doc string, otherwise the doc string will disappear.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
 
from __future__ import absolute_import
18
 
 
19
17
"""Implementation of Transport that uses memory for its storage.
20
18
 
21
19
The contents of the transport will be lost when the object is discarded,
22
20
so this is primarily useful for testing.
23
21
"""
24
22
 
 
23
from __future__ import absolute_import
 
24
 
25
25
import os
26
26
import errno
27
 
import re
28
27
from stat import S_IFREG, S_IFDIR
29
28
from cStringIO import StringIO
30
 
import warnings
31
29
 
32
30
from bzrlib import (
33
31
    transport,
38
36
    LockError,
39
37
    InProcessTransport,
40
38
    NoSuchFile,
41
 
    TransportError,
42
39
    )
43
 
from bzrlib.trace import mutter
44
40
from bzrlib.transport import (
45
41
    AppendBasedFileStream,
46
42
    _file_streams,