summaryrefslogtreecommitdiff
path: root/cffi
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2021-07-07 11:30:07 +0200
committerArmin Rigo <arigo@tunes.org>2021-07-07 11:30:07 +0200
commit8e236a1860eeb9e270c4d2aac52f885a89a17526 (patch)
tree100120f631e19d3ced0e6ae92fdddb4350f87b35 /cffi
parent745d205fa3dc04fb0daed705c773c61852c1deb1 (diff)
parentd1b7d72272d5227b06a6f0fa9be0f27a2f3d4dd9 (diff)
downloadcffi-8e236a1860eeb9e270c4d2aac52f885a89a17526.tar.gz
Merge with default
Diffstat (limited to 'cffi')
-rw-r--r--cffi/_cffi_errors.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cffi/_cffi_errors.h b/cffi/_cffi_errors.h
index 83cdad0..158e059 100644
--- a/cffi/_cffi_errors.h
+++ b/cffi/_cffi_errors.h
@@ -54,6 +54,8 @@ static PyObject *_cffi_start_error_capture(void)
" of.write(x)\n"
" except: pass\n"
" self.buf += x\n"
+ " def flush(self):\n"
+ " pass\n"
"fl = FileLike()\n"
"fl.buf = ''\n"
"of = sys.stderr\n"