diff options
-rw-r--r-- | ssg/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssg/__init__.py b/ssg/__init__.py index ba945b8..c1c7d91 100644 --- a/ssg/__init__.py +++ b/ssg/__init__.py @@ -50,7 +50,7 @@ class Generator: def copy(self, dest: str, source: str | None = None) -> None: if source is None: source = dest - with open(source) as f: + with open(source, "rb") as f: self.write(dest, f.read()) def generate( |