Minor code beautification
diff --git a/Lib/random.py b/Lib/random.py
index a047444..d557acc 100644
--- a/Lib/random.py
+++ b/Lib/random.py
@@ -350,8 +350,7 @@
_int = int
total = len(population)
return [population[_int(random() * total)] for i in range(k)]
- else:
- cum_weights = list(_itertools.accumulate(weights))
+ cum_weights = list(_itertools.accumulate(weights))
elif weights is not None:
raise TypeError('Cannot specify both weights and cumulative_weights')
if len(cum_weights) != len(population):