/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/export/zip_exporter.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:
25
25
import time
26
26
import zipfile
27
27
 
28
 
from breezy import (
 
28
from .. import (
29
29
    osutils,
30
30
    )
31
 
from breezy.export import _export_iter_entries
32
 
from breezy.trace import mutter
 
31
from ..export import _export_iter_entries
 
32
from ..trace import mutter
33
33
 
34
34
 
35
35
# Windows expects this bit to be set in the 'external_attr' section,
36
36
# or it won't consider the entry a directory.
37
37
ZIP_DIRECTORY_BIT = (1 << 4)
38
 
FILE_PERMISSIONS = (0644 << 16)
39
 
DIR_PERMISSIONS = (0755 << 16)
 
38
FILE_PERMISSIONS = (0o644 << 16)
 
39
DIR_PERMISSIONS = (0o755 << 16)
40
40
 
41
41
_FILE_ATTR = stat.S_IFREG | FILE_PERMISSIONS
42
42
_DIR_ATTR = stat.S_IFDIR | ZIP_DIRECTORY_BIT | DIR_PERMISSIONS