sandbox examples use deprecated Python module

Bug #143512 reported by sacco
2
Affects Status Importance Assigned to Milestone
Zope 2
Fix Released
Wishlist
Unassigned

Bug Description

The sandbox security examples introduced in Zope 2.8 depend on the whrandom module which is descibed in the Python library reference as:
"Deprecated since release 2.1"
"It is no longer used. Please do not use this module directly; use random instead."

It is also trivially replaceable by the random module.

The uploaded patch does exactly that.

t.

Tags: bug deferred zope
Revision history for this message
sacco (timothy-heap) wrote :
Revision history for this message
Tres Seaver (tseaver) wrote :

Status: Pending => Deferred

I have updated the ZopeX3-3.0 branch with your patch; landing
it for Zope 2.8 requires stitching a not-yet-existing ZopeX3
3.0.2 release back to the Zope 2.8 branch.

Revision history for this message
Hanno Schlichting (hannosch) wrote :

That whrandom module is long gone.

Changed in zope2:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.