]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Replacing whrandom by random for compatibility with Python 2.6.2 V5_1_3rc1
authormaintenance team <salome-mnt@opencascade.com>
Tue, 13 Oct 2009 13:53:01 +0000 (13:53 +0000)
committermaintenance team <salome-mnt@opencascade.com>
Tue, 13 Oct 2009 13:53:01 +0000 (13:53 +0000)
src/VISU_SWIG/visu.py

index 4d4d9e762850532a27ec01d13dd2425ca3be9c41..50a3aea739d6af62e8c3be54ce245eb3da19b658 100644 (file)
@@ -686,8 +686,8 @@ def CreatePrsForResult(theVisu, theResult, theView, thePrsTypeList, thePictureDi
 
 
 def generateName(prefix = None):
-    import whrandom;
-    int = whrandom.randint(1,1000);
+    import random;
+    int = random.randint(1,1000);
     if prefix is None:
         return "Study" + str(int)
     else :