Skip to content

Commit ca76fde

Browse files
[pre-commit.ci] auto fixes from pre-commit hooks
1 parent 6d2a016 commit ca76fde

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/diffpy/pdffit2/output.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def redirect_stdout(dst):
3838
stdout = dst
3939
return
4040

41+
4142
def restore_stdout():
4243
"""Restore the standard output."""
4344
from diffpy.pdffit2.pdffit2 import restore_stdout

src/extensions/pdffit2module/misc.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2219,14 +2219,14 @@ PyObject * pypdffit2_restore_stdout(PyObject *, PyObject *args)
22192219
delete NS_PDFFIT2::pout;
22202220
NS_PDFFIT2::pout = &std::cout;
22212221
}
2222-
2222+
22232223
// Clean up the custom stream buffer
22242224
if (py_stdout_streambuf)
22252225
{
22262226
delete py_stdout_streambuf;
22272227
py_stdout_streambuf = nullptr;
22282228
}
2229-
2229+
22302230
Py_INCREF(Py_None);
22312231
return Py_None;
22322232
}

0 commit comments

Comments
 (0)