Skip to content

Commit

Permalink
Use real ‘def’, not ‘lambda’, to define next()
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-rhodes committed May 3, 2024
1 parent 15b122a commit 34333b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logging_tree/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import sys

if sys.version_info < (2, 6):
next = lambda generator: generator.next() # supply a missing builtin

def next(generator):
return generator.next()

def printout(node=None):
"""Print a tree of loggers, given a `Node` from `logging_tree.nodes`.
Expand Down

0 comments on commit 34333b1

Please sign in to comment.