diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2015-11-14 14:50:36 +0100 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2015-11-14 14:50:36 +0100 |
commit | d6aa0e99e5ff37a114e9d3ebe4e096d6afefb543 (patch) | |
tree | 091c97fab42bbd954a9fe6af8f7b029b0659e6f9 /pyximport/pyximport.py | |
parent | eaf2ce5debf62163644021e0fc9ae8e52adb7916 (diff) | |
download | cython-d6aa0e99e5ff37a114e9d3ebe4e096d6afefb543.tar.gz |
avoid mutable default arguments (original patch by Rémy Léone)
Diffstat (limited to 'pyximport/pyximport.py')
-rw-r--r-- | pyximport/pyximport.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pyximport/pyximport.py b/pyximport/pyximport.py index 7df37a2ef..5e0927260 100644 --- a/pyximport/pyximport.py +++ b/pyximport/pyximport.py @@ -471,7 +471,7 @@ def _have_importers(): def install(pyximport=True, pyimport=False, build_dir=None, build_in_temp=True, - setup_args={}, reload_support=False, + setup_args=None, reload_support=False, load_py_module_on_import_failure=False, inplace=False, language_level=None): """Main entry point. Call this to install the .pyx import hook in @@ -518,6 +518,8 @@ def install(pyximport=True, pyimport=False, build_dir=None, build_in_temp=True, The default is to use the language level of the current Python runtime for .py files and Py2 for .pyx files. """ + if setup_args is None: + setup_args = {} if not build_dir: build_dir = os.path.join(os.path.expanduser('~'), '.pyxbld') |