Skip to content

Commit

Permalink
Logs: Allow non-integer sequences (Closes #148).
Browse files Browse the repository at this point in the history
As pointed by @glinmac.
  • Loading branch information
rbarrois committed Mar 3, 2015
1 parent c666411 commit 6b9a2b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions factory/declarations.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def __init__(self, function, type=int): # pylint: disable=W0622
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))


Expand All @@ -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))

Expand Down

0 comments on commit 6b9a2b5

Please sign in to comment.