From c9f87c4d7cfac5edbf58a88bdfbfba13a848a036 Mon Sep 17 00:00:00 2001 From: ulif <uli@gnufix.de> Date: Sun, 24 Apr 2016 14:58:41 +0200 Subject: [PATCH] Shorten comment. I guess it is obvious, how the first if-clause works. --- diceware/random_sources.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/diceware/random_sources.py b/diceware/random_sources.py index 26f973a..1681bd0 100644 --- a/diceware/random_sources.py +++ b/diceware/random_sources.py @@ -152,8 +152,6 @@ class RealDiceRandomSource(object): if num_rolls < 1: # If this happens, there are less values in the sequence to # choose from than there are dice sides. - # First check whehter the length is 1. Then we don't have - # to do anything else if len(sequence) == 1: # Check whether len(sequence) is a factor of dice.sides return sequence[0] -- GitLab