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

  • Committer: Jelmer Vernooij
  • Date: 2017-05-22 00:56:52 UTC
  • mfrom: (6621.2.26 py3_pokes)
  • Revision ID: jelmer@jelmer.uk-20170522005652-yjahcr9hwmjkno7n
Merge Python3 porting work ('py3 pokes')

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
import os
20
20
import time
21
21
 
22
 
from breezy import (
 
22
from . import (
23
23
    controldir,
24
24
    errors,
25
25
    osutils,
26
26
    registry,
27
27
    trace,
28
28
    )
29
 
from breezy.i18n import gettext
30
 
from breezy.branch import (
 
29
from .i18n import gettext
 
30
from .branch import (
31
31
    Branch,
32
32
    )
33
 
from breezy.revision import (
 
33
from .revision import (
34
34
    NULL_REVISION,
35
35
    )
36
36
 
140
140
                    raise errors.BzrCommandError(gettext('- not supported for '
141
141
                        'merge directives that use more than one output file.'))
142
142
                if not os.path.exists(output):
143
 
                    os.mkdir(output, 0755)
 
143
                    os.mkdir(output, 0o755)
144
144
                for (filename, lines) in directive.to_files():
145
145
                    path = os.path.join(output, filename)
146
146
                    outfile = open(path, 'wb')