From: Antonio Ospite Date: Fri, 19 Jun 2009 13:04:58 +0000 (+0200) Subject: Import the Set module for python < 2.4 X-Git-Tag: vrm-0.3~5 X-Git-Url: https://git.ao2.it/vrm.git/commitdiff_plain/c0cad5c078eca627696971112e37153cedc13072?ds=inline Import the Set module for python < 2.4 Signed-off-by: Antonio Ospite --- diff --git a/vrm.py b/vrm.py index 7ac4d83..d9c2d40 100755 --- a/vrm.py +++ b/vrm.py @@ -99,6 +99,12 @@ from Blender.Mathutils import * from math import * import sys, time +try: + set() +except NameError: + from sets import Set as set + + def uniq(alist): tmpdict = dict() return [tmpdict.setdefault(e,e) for e in alist if e not in tmpdict]