summaryrefslogtreecommitdiffstats
path: root/Lib/modulefinder.py
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2014-07-07 11:58:12 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2014-07-07 11:58:12 (GMT)
commit0a0d1da987118e11bc9c28937817facdcc9801cb (patch)
tree9b2398c6bb7b2a6bebc5e3082048b570a515a12b /Lib/modulefinder.py
parent344f8316fd52205b19689dbdf44cfcfb338d127e (diff)
downloadcpython-0a0d1da987118e11bc9c28937817facdcc9801cb.zip
cpython-0a0d1da987118e11bc9c28937817facdcc9801cb.tar.gz
cpython-0a0d1da987118e11bc9c28937817facdcc9801cb.tar.bz2
Issue #21707: Add missing kwonlyargcount argument to ModuleFinder.replace_paths_in_code().
Diffstat (limited to 'Lib/modulefinder.py')
-rw-r--r--Lib/modulefinder.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/Lib/modulefinder.py b/Lib/modulefinder.py
index cc5b8cc..b778e60 100644
--- a/Lib/modulefinder.py
+++ b/Lib/modulefinder.py
@@ -568,11 +568,12 @@ class ModuleFinder:
if isinstance(consts[i], type(co)):
consts[i] = self.replace_paths_in_code(consts[i])
- return types.CodeType(co.co_argcount, co.co_nlocals, co.co_stacksize,
- co.co_flags, co.co_code, tuple(consts), co.co_names,
- co.co_varnames, new_filename, co.co_name,
- co.co_firstlineno, co.co_lnotab,
- co.co_freevars, co.co_cellvars)
+ return types.CodeType(co.co_argcount, co.co_kwonlyargcount,
+ co.co_nlocals, co.co_stacksize, co.co_flags,
+ co.co_code, tuple(consts), co.co_names,
+ co.co_varnames, new_filename, co.co_name,
+ co.co_firstlineno, co.co_lnotab, co.co_freevars,
+ co.co_cellvars)
def test():