From 56c6b11b14aaa9c405685586c3731b579c36634d Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Sat, 27 Mar 2021 01:19:32 -0400 Subject: [PATCH] add comment --- archivebox/system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivebox/system.py b/archivebox/system.py index af0dbbb8..3adf2e73 100644 --- a/archivebox/system.py +++ b/archivebox/system.py @@ -37,7 +37,7 @@ def atomic_write(path: Union[Path, str], contents: Union[dict, str, bytes], over """Safe atomic write to filesystem by writing to temp file + atomic rename""" mode = 'wb+' if isinstance(contents, bytes) else 'w' - encoding = None if isinstance(contents, bytes) else 'utf-8' + encoding = None if isinstance(contents, bytes) else 'utf-8' # enforce utf-8 on all text writes # print('\n> Atomic Write:', mode, path, len(contents), f'overwrite={overwrite}') try: