From 75c0080cee78b2dd2810ddebd78824cc3845d6cb Mon Sep 17 00:00:00 2001 From: Tuukka Turto Date: Tue, 29 Nov 2016 07:18:30 +0200 Subject: [PATCH] Change nil to None --- hy/contrib/multi.hy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hy/contrib/multi.hy b/hy/contrib/multi.hy index 94ca90b..0a89b31 100644 --- a/hy/contrib/multi.hy +++ b/hy/contrib/multi.hy @@ -28,13 +28,13 @@ (apply inner.--multi-default-- args kwargs)))) (setv inner.--multi-- {}) (setv inner.--doc-- dispatch-fn.--doc--) - (setv inner.--multi-default-- (fn [&rest args &kwargs kwargs] nil)) + (setv inner.--multi-default-- (fn [&rest args &kwargs kwargs] None)) inner) -(defn method-decorator [dispatch-fn &optional [dispatch-key nil]] +(defn method-decorator [dispatch-fn &optional [dispatch-key None]] (setv apply-decorator (fn [func] - (if (is dispatch-key nil) + (if (is dispatch-key None) (setv dispatch-fn.--multi-default-- func) (assoc dispatch-fn.--multi-- dispatch-key func)) dispatch-fn))