Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • Urania Urania
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • LHCbLHCb
  • UraniaUrania
  • Merge requests
  • !314

Add support for Python 3

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Carlos Vazquez Sierra requested to merge futurize_cleanup_Urania10 into cleanup_Urania10 Nov 25, 2020
  • Overview 80
  • Commits 27
  • Pipelines 0
  • Changes 380+

Two first steps of futurize (https://python-future.org/futurize.html) have been run on cleanup_Urania10:

futurize --stage1 -w `find * -name '*.py'`
futurize --stage2 -w `find * -name '*.py'`

There are two files which are not parseable (the syntax does not make sense, @adudziak @kheinick could you please have a look and fix them? please target this branch instead of cleanup_Urania10):

RefactoringTool: Can't parse PhysFit/B2DXFitters/data/Bs2DsK_Run2CPV/Bs2DsPi/BiasedSFit/BiasedDMSFit.py: ParseError: bad input: type=26, value='{', context=(' ', (7, 9))
RefactoringTool: Can't parse PhysFit/B2DXFitters/data/Bs2DsK_Run2CPV/Bs2DsPi/BiasedSFit/MDFit.py: ParseError: bad input: type=26, value='{', context=(' ', (6, 9))

@dhill @poluekt @adudziak @kheinick Please check the changes in this MR, most of them are refactoring or adaptations to Py3. It would be desirable if you can run some checks and ensure this code does what is expected (comparing it with Py2 versions in cleanup_Urania10).

Thanks!

Edited Feb 23, 2021 by Carlos Vazquez Sierra
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: futurize_cleanup_Urania10