mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
whrandom -> random
This commit is contained in:
parent
b26a1b4e2b
commit
6c3a2cbc52
5 changed files with 12 additions and 12 deletions
|
@ -572,12 +572,12 @@ class FaqWizard:
|
|||
emit(TAIL_RECENT)
|
||||
|
||||
def do_roulette(self):
|
||||
import whrandom
|
||||
import random
|
||||
files = self.dir.list()
|
||||
if not files:
|
||||
self.error("No entries.")
|
||||
return
|
||||
file = whrandom.choice(files)
|
||||
file = random.choice(files)
|
||||
self.prologue(T_ROULETTE)
|
||||
emit(ROULETTE)
|
||||
self.dir.show(file)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue