py3: define xrange for python3

this is done in files where the xrange is used.
replace this with range once python2 is not supported anymore.
issue 0000995
This commit is contained in:
looooo
2017-05-17 18:24:17 +02:00
committed by wmayer
parent fed9d79153
commit ef22d5202d
6 changed files with 26 additions and 0 deletions

View File

@@ -28,6 +28,11 @@ from PySide import QtCore, QtGui
from PathScripts.PathPostProcessor import PostProcessor
from PathScripts.PathPreferences import PathPreferences
import Draft
import sys
# xrange is not available in python3
if sys.version_info.major >= 3:
xrange = range
FreeCADGui = None