Add credits

This commit is contained in:
oobabooga 2023-05-03 21:49:55 -03:00
parent 95d04d6a8d
commit 057b1b2978
2 changed files with 4 additions and 4 deletions

View File

@ -51,6 +51,8 @@ class Iteratorize:
"""
Transforms a function that takes a callback
into a lazy iterator (generator).
Adapted from: https://stackoverflow.com/a/9969000
"""
def __init__(self, func, kwargs={}, callback=None):

View File

@ -1,8 +1,6 @@
#!/usr/bin/env python
# encoding: utf-8
import logging
# now we patch Python code to add color support to logging.StreamHandler
# Copied from https://stackoverflow.com/a/1336640
import logging
def add_coloring_to_emit_windows(fn):
# add methods we need to the class