From 83562a2e83dbdc5899b1653469a8e2d8f4b6a8c4 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Thu, 19 Apr 2012 12:29:42 -0400 Subject: [PATCH] Fixing nlocals --- func_smash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/func_smash.py b/func_smash.py index 9db2eaa..71d6a8c 100644 --- a/func_smash.py +++ b/func_smash.py @@ -15,7 +15,7 @@ def make_chain(funcs): def make_function(chain, name, argcount=1): codes, constants, varnames = _make_codes(chain) - nlocals = len(varnames) + argcount + nlocals = len(varnames) stacksize = 1024 # High limit? flags = 0 # Denotes funcs with *args and/or **kwargs; nothing for now codestring = "".join([chr(code) for code in codes])