From 6e5f2595e0766ee633d918658cfa8769b26fe5ef Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Tue, 13 Jul 2021 13:16:02 +0800 Subject: [PATCH] Update starch to upstream commit f4b84e62d5747ff44cd468c4d8ca1626434378c0 --- starch/starch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/starch/starch.py b/starch/starch.py index c3c63db..8cc43b8 100644 --- a/starch/starch.py +++ b/starch/starch.py @@ -486,7 +486,7 @@ class Generator(object): key = (impl.function, impl.name) old = self.function_impls.get(key) if old: - self.warning('duplicate definition of {impl.function.name} / {impl.name}, previously defined at {old.location[0]}:{old.location[1]}') + self.warning(impl.source, impl.lineno, f'duplicate definition of {impl.function.name} / {impl.name}, previously defined at {old.source.path}:{old.lineno}') return self.function_impls[key] = impl impl.function.impls.append(impl)