Version 0 is deprecated and I want to use version 1 in my projects. However there's no way to change this without digging into the code.
Initially I was just going to fork the project, make the change and use it for ourselves (see first commit), but then I realised it might be better if I made a few more changes so it's more configurable in the future (see second commit). I've left version 0 as the default for backwards compatibility.
I also slimmed down that if statement in the same file to a simple getattr().
Version 0 is deprecated and I want to use version 1 in my projects. However there's no way to change this without digging into the code.
Initially I was just going to fork the project, make the change and use it for ourselves (see first commit), but then I realised it might be better if I made a few more changes so it's more configurable in the future (see second commit). I've left version 0 as the default for backwards compatibility.
I also slimmed down that if statement in the same file to a simple getattr().