projects
/
vrm.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d9268e6
)
Import the Set module for python < 2.4
author
Antonio Ospite <ospite@studenti.unina.it>
Fri, 19 Jun 2009 13:04:58 +0000
(15:04 +0200)
committer
Antonio Ospite <ospite@studenti.unina.it>
Thu, 24 Sep 2009 17:17:45 +0000
(19:17 +0200)
Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
vrm.py
patch
|
blob
|
history
diff --git
a/vrm.py
b/vrm.py
index
7ac4d83
..
d9c2d40
100755
(executable)
--- a/
vrm.py
+++ b/
vrm.py
@@
-99,6
+99,12
@@
from Blender.Mathutils import *
from math import *
import sys, time
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]
def uniq(alist):
tmpdict = dict()
return [tmpdict.setdefault(e,e) for e in alist if e not in tmpdict]