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

whitespace and print fixes towards compiling with python3 #24275

Merged
merged 1 commit into from
Aug 16, 2018

Conversation

davidlange6
Copy link
Contributor

this PR reduces the # of files that don't compile with python3 by 6x (excluding test directory files which in any case do not always compile with python2).

Changes are to fix whitespace errors (mix of tabs and spaces is no longer allowed)

Changes done via:
autopep8 -i --select E101,W690
$CMSSW_RELEASE_BASE/../../../external/py2-future/0.16.0/bin/futurize -n -w --no-diffs -j 4 -f libfuturize.fixes.fix_print_with_import

applied to any file that does not compile with python3

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @davidlange6 (David Lange) for master.

It involves the following packages:

Alignment/CommonAlignmentProducer
Alignment/MillePedeAlignmentAlgorithm
Alignment/MuonAlignment
Alignment/MuonAlignmentAlgorithms
Alignment/OfflineValidation
CalibMuon/DTCalibration
CondCore/Utilities
CondFormats/Serialization
Configuration/Applications
Configuration/PyReleaseValidation
DQM/Integration
DQM/SiStripMonitorClient
DQMOffline/Trigger
HLTrigger/Tools
HLTriggerOffline/Exotica
PhysicsTools/Heppy
PhysicsTools/HeppyCore
PhysicsTools/PatAlgos
PhysicsTools/PatUtils
PhysicsTools/PythonAnalysis
RecoEgamma/Configuration
RecoLuminosity/LumiDB
RecoVertex/BeamSpotProducer
SUSYBSMAnalysis/HSCP
SimG4Core/CustomPhysics
SimGeneral/Configuration
SimGeneral/MixingModule
SimMuon/RPCDigitizer
SimTracker/Configuration
SimTransport/HectorProducer
TauAnalysis/MCEmbeddingTools
Utilities/RelMon
Utilities/ReleaseScripts
Utilities/StaticAnalyzers
Validation/Geometry
Validation/Performance
Validation/RecoB
Validation/RecoTau
Validation/Tools

@andrius-k, @schneiml, @ianna, @kpedro88, @fabozzi, @Martin-Grunewald, @pohsun, @arizzi, @perrotta, @civanch, @silviodonato, @zhenhu, @cmsbuild, @fwyzard, @GurpreetSinghChahal, @davidlange6, @smuzaffar, @Dr15Jones, @mdhildreth, @jfernan2, @tocheng, @slava77, @ggovi, @fabiocos, @prebello, @kmaeshima, @arunhep, @monttj, @pgunnell, @franzoni, @gpetruc, @lpernie can you please review it and eventually sign? Thanks.
@echabert, @TaiSakuma, @gouskos, @felicepantaleo, @jainshilpi, @schoef, @rappoccio, @HeinerTholen, @fioriNTU, @thomreis, @tlampen, @ahinzmann, @lgray, @abbiendi, @mmusich, @seemasharmafnal, @venturia, @pakhotin, @mmarionncern, @smoortga, @hdelanno, @calderona, @makortel, @threus, @acaudron, @jhgoh, @varuns23, @jdolen, @prolay, @HuguesBrun, @drkovalskyi, @ferencek, @trocino, @rociovilar, @Sam-Harper, @GiacomoSguazzoni, @rovere, @VinInn, @jdamgov, @nhanvtran, @gkasieczka, @tocheng, @jandrea, @mschrode, @idebruyn, @ebrondol, @mtosi, @dgulhan, @clelange, @Martin-Grunewald, @batinkov, @swertz, @battibass, @gbenelli, @wddgit, @JyothsnaKomaragiri, @mverzett, @cbernet, @gpetruc, @imarches, @mariadalfonso, @pvmulder, @folguera this is something you requested to watch as well.
@davidlange6, @slava77, @fabiocos you are the release manager for this.

cms-bot commands are listed here

@davidlange6
Copy link
Contributor Author

davidlange6 commented Aug 13, 2018 via email

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 13, 2018

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/29801/console Started: 2018/08/13 17:32

@andrius-k
Copy link

+1

@pohsun
Copy link

pohsun commented Aug 14, 2018

+1

@prebello
Copy link
Contributor

+1

@ggovi
Copy link
Contributor

ggovi commented Aug 14, 2018

+1

@civanch
Copy link
Contributor

civanch commented Aug 14, 2018

+1

@Dr15Jones
Copy link
Contributor

+1

@slava77
Copy link
Contributor

slava77 commented Aug 14, 2018

+1

for #24275 2d27440

  • technical (cleanup spaces in otherwise empty lines; reindents everything to 4 spaces). Looking at files in the reco categories, it looks like the indentation keeps the scope consistent
  • jenkins tests pass and comparisons show no [relevant] differences

@davidlange6
Copy link
Contributor Author

davidlange6 commented Aug 15, 2018 via email

@fabiocos
Copy link
Contributor

+operations

the changes in the Configuration area are consistent with the purpose of the PR, and the diff -b/-w shows that differences affect only whitespaces

@fabiocos
Copy link
Contributor

+1

@kpedro88 as far as I can see the changes in this PR are consistent with the declared purpose and simple enough to move forward

@fabiocos
Copy link
Contributor

merge

@cmsbuild cmsbuild merged commit 5837ec6 into cms-sw:master Aug 16, 2018
@kpedro88
Copy link
Contributor

+upgrade
(posthumously, just to express my great appreciation for unifying the indentation)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment