Mercurial > p > roundup > code
diff roundup/anypy/random_.py @ 7228:07ce4e4110f5
flake8 fixes: whitespace, remove unused imports
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sat, 18 Mar 2023 14:16:31 -0400 |
| parents | adf54478cdaf |
| children | f002747b6773 |
line wrap: on
line diff
--- a/roundup/anypy/random_.py Thu Mar 16 16:34:11 2023 -0400 +++ b/roundup/anypy/random_.py Sat Mar 18 14:16:31 2023 -0400 @@ -20,7 +20,8 @@ # don't completely throw away the existing state, but add some # more random state to the existing state def seed(v=None): - import os, time + import os + import time _r.seed((_r.getstate(), v, hasattr(os, 'getpid') and os.getpid(),
