Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • N NIFTy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 17
    • Issues 17
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ift
  • NIFTy
  • Merge requests
  • !165

avoid exec statements; they cause problems with Python 3

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Martin Reinecke requested to merge avoid_exec into master Jul 14, 2017
  • Overview 2
  • Commits 2
  • Pipelines 2
  • Changes 3

This small change replaces exec() calls by calls to ast.literal_eval().

I don't know why exactly, but Python 3 appears to forget newly created variables after returning from exec(), so the current approach does not work with Python 3.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: avoid_exec