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

[py2py3] Modernization of last files left out up to now #10768

Merged
merged 2 commits into from
Aug 26, 2021

Conversation

mapellidario
Copy link
Member

@mapellidario mapellidario commented Aug 24, 2021

Fixes #10150

Status

ready

Description

I used pylint --py3k to scan whole dmwm/WMCore and find what have been left out up to now.

There is one thing that pylint is complaining about, that i did not update in this
PR is

  • Module src.python.WMCore.Configuration src/python/WMCore/Configuration.py:74:0: W1641: Implementing __eq__ without also implementing __hash__ (eq-without-hash).
    • The issue description contains the motivation for not changing anything related to this

Is it backward compatible (if not, which system it affects?)

yes

Related PRs

nope

External dependencies / deployment changes

nope

@cmsdmwmbot

This comment has been minimized.

@cmsdmwmbot
Copy link

Jenkins results:

  • Python2 Unit tests: succeeded
  • Python3 Unit tests: succeeded
    • 2 changes in unstable tests
  • Python2 Pylint check: failed
    • 18 warnings and errors that must be fixed
    • 6 warnings
    • 390 comments to review
  • Python3 Pylint check: failed
    • 19 warnings and errors that must be fixed
    • 6 warnings
    • 99 comments to review
  • Pylint py3k check: succeeded
  • Pycodestyle check: succeeded
    • 743 comments to review

Details at https://cmssdt.cern.ch/dmwm-jenkins/view/All/job/DMWM-WMCore-PR-test/12393/artifact/artifacts/PullRequestReport.html

@mapellidario mapellidario requested a review from amaltaro August 25, 2021 14:56
Copy link
Contributor

@amaltaro amaltaro left a comment

Choose a reason for hiding this comment

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

Thanks, Dario. It looks good to me.

@@ -204,8 +204,8 @@ def __call__(self, parameters):
# force entire component to terminate
try:
self.component.prepareToStop()
except Exception as ex:
logging.error("Failed to halt component after worker crash: %s", str(ex))
except Exception as ex1:
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice catch!

Copy link
Member Author

Choose a reason for hiding this comment

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

it wasn't me, you have to thank pylint for that! ahaha

@amaltaro amaltaro merged commit 7230753 into dmwm:master Aug 26, 2021
@mapellidario mapellidario deleted the 10150-fix branch March 10, 2023 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[py2py3] Migration at level scr/python/A/B/C - slice 26
3 participants