tomerfiliba / plumbum

Plumbum: Shell Combinators
https://plumbum.readthedocs.io
MIT License
2.81k stars 183 forks source link

Remote path stat has odd OSError #504

Closed harlowja closed 4 years ago

harlowja commented 4 years ago

Looking at the following it seems oddly wrong:

https://github.com/tomerfiliba/plumbum/blob/master/plumbum/path/remote.py#L170-L174

>>> x = OSError(errno.ENOENT)
>>> x.message
2
>>> x.errno

Seems like message is getting populated with the errno value and not errno :-/