Skip to content

Fix file open mode for Python 3 and PEP-8 errors for data managers#3323

Merged
bernt-matthias merged 1 commit intogalaxyproject:masterfrom
nsoranzo:py3_data_managers_json
Nov 22, 2020
Merged

Fix file open mode for Python 3 and PEP-8 errors for data managers#3323
bernt-matthias merged 1 commit intogalaxyproject:masterfrom
nsoranzo:py3_data_managers_json

Conversation

@nsoranzo
Copy link
Copy Markdown
Member

@nsoranzo nsoranzo commented Nov 19, 2020

Also:

  • prefer json load()/dump() to loads()/dumps()
  • use with statement to open/close files

Close #2032

FOR CONTRIBUTOR:

  • - I have read the CONTRIBUTING.md document and this tool is appropriate for the tools-iuc repo.
  • - License permits unrestricted use (educational + commercial)
  • - This PR adds a new tool or tool collection
  • - This PR updates an existing tool or tool collection
  • - This PR does something else (explain below)

Also:
- prefer json `load()`/`dump()` to `loads()`/`dumps()`
- use `with` statement to open/close files

Close galaxyproject#2032
@nsoranzo nsoranzo changed the title Fix file open mode for Python 3 and PEP-8 errors Fix file open mode for Python 3 and PEP-8 errors for data managers Nov 20, 2020
@bgruening
Copy link
Copy Markdown
Member

@nsoranzo thanks a lot.

Copy link
Copy Markdown
Contributor

@bernt-matthias bernt-matthias left a comment

Choose a reason for hiding this comment

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

Great work. Good to have more consistency in the data managers.

@bernt-matthias bernt-matthias merged commit 02d2967 into galaxyproject:master Nov 22, 2020
@nsoranzo nsoranzo deleted the py3_data_managers_json branch November 23, 2020 12:35
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