From 6b9a2b5d9aaa1f4fb06819240a7b243fcfd79943 Mon Sep 17 00:00:00 2001 From: Raphaƫl Barrois Date: Tue, 3 Mar 2015 22:50:49 +0100 Subject: Logs: Allow non-integer sequences (Closes #148). As pointed by @glinmac. --- factory/declarations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'factory') diff --git a/factory/declarations.py b/factory/declarations.py index f6f5846..b3833ee 100644 --- a/factory/declarations.py +++ b/factory/declarations.py @@ -194,7 +194,7 @@ class Sequence(OrderedDeclaration): self.type = type def evaluate(self, sequence, obj, create, extra=None, containers=()): - logger.debug("Sequence: Computing next value of %r for seq=%d", self.function, sequence) + logger.debug("Sequence: Computing next value of %r for seq=%s", self.function, sequence) return self.function(self.type(sequence)) @@ -208,7 +208,7 @@ class LazyAttributeSequence(Sequence): of counter for the 'function' attribute. """ def evaluate(self, sequence, obj, create, extra=None, containers=()): - logger.debug("LazyAttributeSequence: Computing next value of %r for seq=%d, obj=%r", + logger.debug("LazyAttributeSequence: Computing next value of %r for seq=%s, obj=%r", self.function, sequence, obj) return self.function(obj, self.type(sequence)) -- cgit v1.2.3