jp (blog/edit): removed meta_file_path non existence check, as it is now re-used if it exists
This commit is contained in:
parent
3ab15a6aee
commit
7ebae7c89a
1 changed files with 0 additions and 2 deletions
|
|
@ -193,8 +193,6 @@ class Edit(base.CommandBase, BlogCommon):
|
|||
|
||||
# then we create the file and write metadata there, as JSON dict
|
||||
# XXX: if we port jp one day on Windows, O_BINARY may need to be added here
|
||||
if os.path.exists(meta_file_path):
|
||||
self.disp(u"metadata file {} already exists, this should not happen! Cancelling...", error=True)
|
||||
with os.fdopen(os.open(meta_file_path, os.O_RDWR | os.O_CREAT ,0o600), 'w+b') as f:
|
||||
# we need to use an intermediate unicode buffer to write to the file unicode without escaping characters
|
||||
unicode_dump = json.dumps(mb_data, ensure_ascii=False, indent=4, separators=(',', ': '), sort_keys=True)
|
||||
|
|
|
|||
Loading…
Reference in a new issue