diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2018-07-15 11:30:54 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2018-07-15 11:30:54 +0200 |
commit | 6f34648cf13a8710c767d553e3313985f5d3fa28 (patch) | |
tree | 49b2a6852e3e8b21f1cf0f856b1d78ee94931015 | |
parent | 68b2f9bd888f86766fea254d6253f3b1e88cc8a4 (diff) | |
download | ee-python-6f34648cf13a8710c767d553e3313985f5d3fa28.tar.gz ee-python-6f34648cf13a8710c767d553e3313985f5d3fa28.tar.bz2 ee-python-6f34648cf13a8710c767d553e3313985f5d3fa28.tar.xz ee-python-6f34648cf13a8710c767d553e3313985f5d3fa28.zip |
undo
-rw-r--r-- | src/ee/tools/digikey_download_facts.py | 2 | ||||
-rw-r--r-- | test/test_digikey.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ee/tools/digikey_download_facts.py b/src/ee/tools/digikey_download_facts.py index 54ff640..923b996 100644 --- a/src/ee/tools/digikey_download_facts.py +++ b/src/ee/tools/digikey_download_facts.py @@ -46,7 +46,7 @@ parser.add_argument("--force", args = parser.parse_args() digikey = dk.Digikey() -client = dk.DigikeyClient(digikey, event_handler=lambda kind, msg: (log.debug if kind == "on-download" else log.info)(msg)) +client = dk.DigikeyClient(digikey, on_download=log.debug) repo = dk.DigikeyRepository(digikey, args.out) diff --git a/test/test_digikey.py b/test/test_digikey.py index 051c66f..015b7ca 100644 --- a/test/test_digikey.py +++ b/test/test_digikey.py @@ -9,7 +9,7 @@ from itertools import groupby basedir = os.path.dirname(os.path.abspath(__file__)) digikey = dk.Digikey() -client = dk.DigikeyClient(digikey, event_handler=lambda kind, msg: print("{}:{}".format(kind, msg))) +client = dk.DigikeyClient(digikey, on_download=print) @pytest.mark.digikey |