Skip to content

Python 2 & 3 compatibility: part 1

Luke Kreczko requested to merge kreczko/Gaudi:kreczko-python3-step1 into master

This is an attempt to solve #56 (closed) by breaking up !545 (closed) and adjusting changes.

This MR includes the first 5 commits

Changes compared to the above include more use of the six module, e.g. six.next(),six.moves.filter(), six.moves.map(), six.iteritems() and six.moves.cPickle() which should allow for easier tracking of both Python 2 & 3 compatibility.

However, tests seem to fail due to the six module not being available albeit it is installed in LCG_94:

Traceback (most recent call last):
  File "/builds/kreczko/Gaudi/cmake/modules/scan_dict_deps.py", line 4, in <module>
    import six
ImportError: No module named six
Edited by Luke Kreczko

Merge request reports

Loading