-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Take python exceptions from builtins #28299
Conversation
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-28299/12495
|
A new Pull Request was created by @guitargeek (Jonas Rembser) for master. It involves the following packages: PhysicsTools/PythonAnalysis @perrotta, @cmsbuild, @santocch, @slava77 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
The tests are being triggered in jenkins. |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
+1 for #28299 6c10fd7
|
+1 |
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @davidlange6, @slava77, @smuzaffar, @fabiocos (and backports should be raised in the release meeting by the corresponding L2) |
@guitargeek thanks for this update, I need to check several other scripts not covered by regular tests in IB |
+1 |
PR description:
Today I wanted to use the
edmDumpEventContent
script with python3, which can be easily done by automatically updating the code withpython-modernize
except for one hiccup: theimport exceptions
line in PhysicsTools/PythonAnalysis/python/cmstools.py. Following the information in this post [1], the exceptions can be just taken from the builtins instead of the exceptions module in python 2 as well, which makes the code python 3 compatible. There was also another spot in CMSSW where the formerexceptions
module was imported, so I changed this one too.[1] https://stackoverflow.com/questions/27030933/python-2s-exceptions-module-is-missing-in-python3-where-did-its-contents-go
PR validation:
I can use
edmDumpEventContent
with python 3 when I take this PR and runpython-modernize -n -w .
on top of it.if this PR is a backport please specify the original PR:
No backport intended.