From: maintenance team Date: Tue, 13 Oct 2009 13:53:01 +0000 (+0000) Subject: Replacing whrandom by random for compatibility with Python 2.6.2 X-Git-Tag: V5_1_3rc1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e7a1bc76fb7ea00b733b7cd2dab901234ab8cc30;p=modules%2Fvisu.git Replacing whrandom by random for compatibility with Python 2.6.2 --- 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 :