summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pokemontools/gfx.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pokemontools/gfx.py b/pokemontools/gfx.py
index a728de1..f93553d 100644
--- a/pokemontools/gfx.py
+++ b/pokemontools/gfx.py
@@ -634,7 +634,7 @@ def png_to_2bpp(filein, **kwargs):
arguments.update(kwargs)
if type(filein) is str:
- filein = open(filein)
+ filein = open(filein, 'rb')
assert type(filein) is file