diff --git a/assetman/compilers.py b/assetman/compilers.py index 52e2f96..b8ced9a 100644 --- a/assetman/compilers.py +++ b/assetman/compilers.py @@ -200,7 +200,7 @@ def replacer(match): logging.debug('Not inlining %s (%.2fKB)', path, os.stat(path).st_size / KB) return match.group(0) else: - encoded = base64.b64encode(open(path).read()) + encoded = base64.b64encode(open(path, 'rb').read()) mime_type, _ = mimetypes.guess_type(path) if not mime_type and path.endswith('.otf'): mime_type = 'application/octet-stream' diff --git a/pyproject.toml b/pyproject.toml index f6d2b06..4d11842 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,13 +5,14 @@ build-backend = "setuptools.build_meta" [project] name = "pyassetman" description = "assetman assetmanager" -version = "0.3.0rc1" +version = "0.3.0rc2" authors = [ { name="Will McCutchen", email="wm@bit.ly" }, ] maintainers = [ { name="Jehiah Czebotar", email="jehiah@gmail.com"}, - { name="Josh Harshman", email="josh.harshman@bit.ly"} + { name="Josh Harshman", email="josh.harshman@bit.ly"}, + { name="Oscar Luu", email="oscar.luu@bit.ly"} ] readme = "README.md" requires-python = ">=3.8"