From e7a1bc76fb7ea00b733b7cd2dab901234ab8cc30 Mon Sep 17 00:00:00 2001 From: maintenance team Date: Tue, 13 Oct 2009 13:53:01 +0000 Subject: [PATCH] Replacing whrandom by random for compatibility with Python 2.6.2 --- src/VISU_SWIG/visu.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/VISU_SWIG/visu.py b/src/VISU_SWIG/visu.py index 4d4d9e76..50a3aea7 100644 --- a/src/VISU_SWIG/visu.py +++ b/src/VISU_SWIG/visu.py @@ -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 : -- 2.39.2