Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

explicitly wrap flush LocalFileOpener #1070

Merged
merged 2 commits into from Oct 11, 2022

Conversation

ptrba
Copy link
Contributor

@ptrba ptrba commented Oct 10, 2022

Solving #1057.

@ptrba ptrba changed the title explicitly wrap flush and name of LocalFileOpener explicitly wrap flush LocalFileOpener Oct 10, 2022
@martindurant
Copy link
Member

Thanks for the fix. I suppose getattr is actually never called when the method is available (but not implemented) in the superclasses, you are right. You are welcome to add more specific known methods of a file here, I don't mind - or we can merge as is, since it solves your problem.

Thanks for the digging, I like the weird effect the bug has, of swapping the header and data portions of the output.

@ptrba
Copy link
Contributor Author

ptrba commented Oct 11, 2022

I suggest to merge just this fix. Removing getattr without replacement breaks a couple of tests. Replacing it by explicit overrides will most likely resolve it. But I won't do that right now.

@martindurant
Copy link
Member

OK, merging when green.

@martindurant martindurant merged commit 30b2da7 into fsspec:master Oct 11, 2022
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.

None yet

2 participants