mirror of
https://github.com/Hopiu/django-markdownx.git
synced 2026-04-11 17:00:58 +00:00
Python 2 compatibility.
This commit is contained in:
parent
d67bbe8a0c
commit
259c7a4b4e
1 changed files with 2 additions and 2 deletions
4
dev.py
4
dev.py
|
|
@ -167,11 +167,11 @@ def create_files(name):
|
|||
file.find('contents').text = escape(file_io)
|
||||
elif not contents_identical:
|
||||
with open(absolute_path, mode='w') as file_io:
|
||||
print(template_contents, file=file_io, end='\n')
|
||||
file_io.write(template_contents + '\n')
|
||||
print('> REPLACED with default:', display_path)
|
||||
else:
|
||||
with open(absolute_path, mode='w') as target_file:
|
||||
print(template_contents, file=target_file)
|
||||
target_file.write(template_contents)
|
||||
print('> CREATED:', display_path)
|
||||
|
||||
contents_xml.write(
|
||||
|
|
|
|||
Loading…
Reference in a new issue