orgparse icon indicating copy to clipboard operation
orgparse copied to clipboard

QUESTION: Reason about using `codecs.open()`

Open buhtz opened this issue 1 year ago • 1 comments

https://github.com/karlicoss/orgparse/blob/36b31d8151e45ac6701822864816b48446d3dcad/orgparse/init.py#L135

I am preparing a little bugfix but stumbled across this line where you use codecs.open() instead of builtin.open() or pathlib.Path.open().

From your current point of view:

Is there a good and strict reason for this? Are there any reasons against using the usual builtin.open() or pathlib.Path.open()?

If there is no need for using codecs I will show you in a PR what I have in my mind. ;)

buhtz avatar Jul 24 '22 08:07 buhtz

Hey, seems that it's very very old code, from 2012 https://github.com/karlicoss/orgparse/commit/f8fda1007304ef7f2531b6b566f50bddf572c271

So i'd imagine there is no reason to use it now :) feel free to switch it to builtin.open!

karlicoss avatar Jul 24 '22 16:07 karlicoss

Fixed via PR #57

buhtz avatar Jun 18 '23 19:06 buhtz