Skip to content

Commit 702cebf

Browse files
committed
Appease linter.
1 parent 1962918 commit 702cebf

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/sage/parallel/decorate.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,6 @@ def parallel(p_iter='fork', ncpus=None, **kwds):
399399
sage: Foo.square_classmethod(3)
400400
9
401401
402-
403402
By default, all subprocesses use the same random seed and therefore the same deterministic randomness.
404403
For functions that should be randomized, we can reseed the random seed in each subprocess::
405404

src/sage/parallel/use_fork.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,9 @@ def _subprocess(self, f, dir, args, kwds={}):
315315
invalidate_all()
316316

317317
# Reseed rng, if requested.
318-
if self.reseed_rng == True:
318+
if self.reseed_rng:
319319
set_random_seed(self.worker_seed)
320320

321-
322321
# Now evaluate the function f.
323322
value = f(*args, **kwds)
324323

0 commit comments

Comments
 (0)