diff options
| author | Rohit Goswami <r95g10@gmail.com> | 2021-09-29 21:15:52 +0000 |
|---|---|---|
| committer | Rohit Goswami <rog32@hi.is> | 2021-09-30 19:11:10 +0000 |
| commit | 9492206648befbf6a665f310f4ba1a69e25862ca (patch) | |
| tree | 9bec2494e3c8557ba5c4d19c529596301e74a750 /numpy | |
| parent | 85ce7a20b243555e9672b9d9e4cc0c7d7e6e0f2e (diff) | |
| download | numpy-9492206648befbf6a665f310f4ba1a69e25862ca.tar.gz | |
MAINT: Reviewer comments
Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
Diffstat (limited to 'numpy')
| -rwxr-xr-x | numpy/f2py/rules.py | 2 | ||||
| -rw-r--r-- | numpy/f2py/tests/test_callback.py | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/numpy/f2py/rules.py b/numpy/f2py/rules.py index f292121b5..242271b70 100755 --- a/numpy/f2py/rules.py +++ b/numpy/f2py/rules.py @@ -1276,7 +1276,7 @@ def buildmodule(m, um): fn = os.path.join(options['buildpath'], vrd['coutput']) ret['csrc'] = fn with open(fn, 'w') as f: - f.write(ar['modulebody'].replace(' ', 2 * ' ')) + f.write(ar['modulebody'].replace('\t', 2 * ' ')) outmess(' Wrote C/API module "%s" to file "%s"\n' % (m['name'], fn)) if options['dorestdoc']: diff --git a/numpy/f2py/tests/test_callback.py b/numpy/f2py/tests/test_callback.py index 44ee81a92..d07e98357 100644 --- a/numpy/f2py/tests/test_callback.py +++ b/numpy/f2py/tests/test_callback.py @@ -97,7 +97,7 @@ cf2py intent(out) r Other Parameters ---------------- fun_extra_args : input tuple, optional - Default: () + Default: () Returns ------- @@ -107,10 +107,10 @@ cf2py intent(out) r ----- Call-back functions:: - def fun(): return a - Return objects: - a : int -""") + def fun(): return a + Return objects: + a : int + """) assert_equal(self.module.t.__doc__, expected) def check_function(self, name): |
