shibukawa / imagesize_py

MIT License
222 stars 43 forks source link

Fix handling of different path types #36

Closed jdufresne closed 2 years ago

jdufresne commented 4 years ago

In Python, a path can normally be either type bytes, str, or pathlib.Path. Coercing a bytes object to str results in using the repr value.

Add tests for all path types.