From ba6e6a8c6b333a2401faf3bc9ccf80a8170d7ee0 Mon Sep 17 00:00:00 2001 From: lanjelot Date: Fri, 22 Feb 2013 16:24:05 +1100 Subject: [PATCH] will run even with no keywords --- patator.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/patator.py b/patator.py index b7c5b9b..f617012 100755 --- a/patator.py +++ b/patator.py @@ -1161,6 +1161,9 @@ Please read the README inside for more examples and usage information. self.total_size *= size iterables.append(iterable) + if not iterables: + iterables.append(chain([''])) + if self.stop: self.total_size = self.stop - self.start else: