diff options
author | Giampaolo Rodola' <g.rodola@gmail.com> | 2012-12-17 14:23:41 +0100 |
---|---|---|
committer | Giampaolo Rodola' <g.rodola@gmail.com> | 2012-12-17 14:23:41 +0100 |
commit | 0205ddf993f9eace12e5155a9279c8905ffd9c45 (patch) | |
tree | c1afcf4d3cdfd4694b2f98ca1bc5a67631cd9719 /Python/pythonrun.c | |
parent | 069d6b4facc256309028aa1ed58ac47154097737 (diff) | |
parent | b85133943133f60a4f80d586de0e79dc7d8a8bd0 (diff) | |
download | cpython-0205ddf993f9eace12e5155a9279c8905ffd9c45.tar.gz |
Fix issue #16646: ftplib.FTP.makeport() might lose socket error details. (patch by Serhiy Storchaka)
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index dd32017574..f0d8550773 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -38,9 +38,10 @@ #ifndef Py_REF_DEBUG #define PRINT_TOTAL_REFS() #else /* Py_REF_DEBUG */ -#define PRINT_TOTAL_REFS() fprintf(stderr, \ - "[%" PY_FORMAT_SIZE_T "d refs]\n", \ - _Py_GetRefTotal()) +#define PRINT_TOTAL_REFS() fprintf(stderr, \ + "[%" PY_FORMAT_SIZE_T "d refs, " \ + "%" PY_FORMAT_SIZE_T "d blocks]\n", \ + _Py_GetRefTotal(), _Py_GetAllocatedBlocks()) #endif #ifdef __cplusplus |