chiark / gitweb /
Fix version detection for all Python versions
authorStefan Blanke <greenarrow@users.sourceforge.net>
Fri, 22 Jun 2012 13:37:52 +0000 (14:37 +0100)
committerStefan Blanke <greenarrow@users.sourceforge.net>
Fri, 22 Jun 2012 13:37:52 +0000 (14:37 +0100)
commit70bbc16abe70cea9a463802b2d2d4f74580983b0
tree5e5842f0cfdc58a62dd44d480060f9f2352357ca
parentbcabc0d96ae6d5a83e48f6ef8ce811690abf3c75
Fix version detection for all Python versions

Inspecting sys.version_info using named component attributes was added in
the patch "Some fixes to start support for python3."

Named component attributes were only added to sys.version_info in Python
2.7 so their use breaks Cura for Python 2.6.

As Cura otherwise works in the still widely used Python 2.6 it seems best
to maintain this compatibility.
Cura/cura_sf/fabmetheus_utilities/euclidean.py
Cura/cura_sf/fabmetheus_utilities/gcodec.py
Cura/cura_sf/fabmetheus_utilities/xml_simple_writer.py
Cura/util/profile.py