From 93501935d0b2bad8fd730ab515e6546253bbdccb Mon Sep 17 00:00:00 2001 From: Noah <33094578+coolreader18@users.noreply.github.com> Date: Mon, 28 Sep 2020 23:52:38 -0500 Subject: [PATCH] Fix co.co_varnames to include vararg names --- bytecode/src/bytecode.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bytecode/src/bytecode.rs b/bytecode/src/bytecode.rs index 7223d9efc..6e9ef8613 100644 --- a/bytecode/src/bytecode.rs +++ b/bytecode/src/bytecode.rs @@ -435,6 +435,8 @@ impl CodeObject { .iter() .map(String::as_str) .chain(self.kwonlyarg_names.iter().map(String::as_str)) + .chain(self.varargs_name.as_deref()) + .chain(self.varkeywords_name.as_deref()) .chain( self.instructions .iter()