Skip to content

Conversation

@Spacerat
Copy link
Contributor

@Spacerat Spacerat commented Jul 8, 2018

This is a fix for the problem of subclasses of FSError/Exception causing multiprocessing to hang ( issue #183 ) if they change the arguments to __init__. I went with @willmcgugan 's suggestion to implement __reduce__ in each subclass wherever it was required.

@coveralls
Copy link

coveralls commented Jul 8, 2018

Coverage Status

Coverage decreased (-0.2%) to 99.813% when pulling 87f4b5d on evenco:pickleable-errors into 21cbbfb on PyFilesystem:master.

fs/errors.py Outdated

def __init__(self, namespace):
# type: (Text) -> None
self.namespace=namespace
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tiny pep8 thing, should be whitespace around =

@willmcgugan
Copy link
Member

@Spacerat Looks good, thanks. Just a tiny request in the comments, and its good to merge.

@Spacerat
Copy link
Contributor Author

👍 thanks for the review @willmcgugan . I've fixed the formatting error now

@willmcgugan willmcgugan merged commit 997ee16 into PyFilesystem:master Jul 24, 2018
@willmcgugan
Copy link
Member

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants