• Jérome Perrin's avatar
    stack/erp5: patch RestrictedPython to compile with print_function · d5167f66
    Jérome Perrin authored
    Every restricted python code on python2 will be compiled as if it had
    `from __future__ import print_function`, to ease transition away from
    python2.
    
    To update project code, 2to3 from python2.7 seems to do a good job.
    Invoking like from the root of a repository rewrite all scripts:
    
        2to3  --write --nobackups --no-diffs --fix=print .
    d5167f66
buildout.cfg 27 KB