diff options
Diffstat (limited to 'python/astra/functions.py')
-rw-r--r-- | python/astra/functions.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/python/astra/functions.py b/python/astra/functions.py index b826b86..e38b5bc 100644 --- a/python/astra/functions.py +++ b/python/astra/functions.py @@ -32,7 +32,11 @@ from . import creators as ac import numpy as np -from six.moves import range +try: + from six.moves import range +except ImportError: + # six 1.3.0 + from six.moves import xrange as range from . import data2d from . import data3d |