Commit 8d1b9590 authored by Michal Čihař's avatar Michal Čihař

Python 3 compatibility

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 45e0a50c
......@@ -60,8 +60,8 @@ TEMPLATE_RE = re.compile(r'{[a-z_-]+}|@[A-Z_]@')
RST_MATCH = re.compile(r'(?::ref:`[^`]+`|``[^`]+``)')
SPLIT_RE = re.compile(
ur'(?:\&(?:nbsp|rsaquo|lt|gt|amp|ldquo|rdquo|times|quot);|' +
ur'[() ,.^`"\'\\/_<>!?;:|{}*^@%#&~=+\r\n✓—…\[\]0-9-])+'
r'(?:\&(?:nbsp|rsaquo|lt|gt|amp|ldquo|rdquo|times|quot);|' +
r'[() ,.^`"\'\\/_<>!?;:|{}*^@%#&~=+\r\n✓—…\[\]0-9-])+'
)
# Docbook tags to ignore
......
......@@ -156,7 +156,7 @@ class Command(BaseCommand):
'''
# Create temporary working dir
workdir = tempfile.mkdtemp(dir=project.get_path())
os.chmod(workdir, 0755)
os.chmod(workdir, 0o755)
# Initialize git repository
self.logger.info('Cloning git repository...')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment