Skip to content

py2filesystem file sources: always use context managers#21645

Open
bernt-matthias wants to merge 2 commits intogalaxyproject:devfrom
bernt-matthias:py2fs-context-manager
Open

py2filesystem file sources: always use context managers#21645
bernt-matthias wants to merge 2 commits intogalaxyproject:devfrom
bernt-matthias:py2fs-context-manager

Conversation

@bernt-matthias
Copy link
Contributor

as already done in _list.

I guess _realize_to and _write_from will be called from jobs and celery jobs, i.e. the impact will be marginal, but its cleaner anyway..,

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

@bernt-matthias bernt-matthias changed the title py2fs: always use context managers py2filesystem file sources: always use context managers Jan 22, 2026
@github-actions github-actions bot added this to the 26.1 milestone Jan 22, 2026
as already done in `_list`.

I guess _realize_to and _write_from will be called from jobs and
celery jobs, i.e. the impact will be marginal, but its cleaner anyway..,

Co-authored-by: David López <dlopez@informatik.uni-freiburg.de>
Co-authored-by: Nicola Soranzo <nicola.soranzo@gmail.com>
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