From 504d33f893a55cddbdc00973cdaec486ac83a973 Mon Sep 17 00:00:00 2001 From: har0ke Date: Tue, 20 Aug 2019 19:38:34 +0200 Subject: [PATCH] remove unused default parameters --- main/utils.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/main/utils.py b/main/utils.py index 81a321b..421da6a 100644 --- a/main/utils.py +++ b/main/utils.py @@ -30,11 +30,7 @@ def get_loss_color(loss): ("orange" if abs(loss) > LOSS_WARN_LEVEL * 100 else "green")) -def _identity(*x): - return x - - -def merge_sorted(a, b, missing=_identity, inserted=_identity, kept=_identity): +def merge_sorted(a, b, missing, inserted, kept): def _next(iterator): try: return next(iterator)