Python 3 code commonly represents paths as pathlib Path objects, rather than strs. This patch makes get() and getDPI() silently accept Path objects, in a way that's backward compatible with Python 2.
In my local testing, the perf cost was way below the noise threshold.
Python 3 code commonly represents paths as pathlib
Path
objects, rather thanstr
s. This patch makesget()
andgetDPI()
silently acceptPath
objects, in a way that's backward compatible with Python 2.In my local testing, the perf cost was way below the noise threshold.