Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 394
    • Issues 394
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 25
    • Merge requests 25
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Merge requests
  • !50

[vers manager] minor fix to support python2.6

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Hans-Nikolai Viessmann requested to merge hans/sac2c:fix-python26-problem into develop Jun 11, 2018
  • Overview 1
  • Commits 1
  • Changes 1

On CentOS 6.*, Python2.6 is the primary variant of python available through the package manager. Unfortunately, it is very cumbersome to install a newer version of Python, as several systems tools (such as yum) have a hard dependency on the older version. Because of this we run into compatibility problems:

Python2.6 does not support dict comprehensions (these were introduced in python2.7 - see PEP274). We use this in two places within the version script. This patch changes the comprehensions into normal loop operations. This works fine with later versions of Python2.* branch.

It's unfortunate that we need to worry about this given that python2.6 is no longer support by the Python devs... perhaps we should rethink out position on supporting CentOS 6.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: fix-python26-problem