py 2.3 compat for lightwave_import and wizard_curve2tree
[blender.git] / release / scripts / lightwave_import.py
index 2049fbd23802425b4ba0746236c440406dfd6395..6d02467cef8cb68afaabeb59dcfe010ce09184c9 100644 (file)
@@ -106,6 +106,12 @@ try:
 except:
        struct= chunk= cStringIO= None
 
+# python 2.3 has no reversed() iterator. this will only work on lists and tuples
+try:
+       reversed
+except:
+       def reversed(l): return l[::-1]
+
 ### # Debuggin disabled in release.
 ### # do a search replace to enabe debug prints
 ### DEBUG = False