diff options
author | Erlend Egeberg Aasland <erlend.aasland@innova.no> | 2021-01-04 21:33:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-04 21:33:45 (GMT) |
commit | 0b858cdd5d114f0890b11b6c4d6559d0ceb468ab (patch) | |
tree | db0cacfe7c5c219442cf9c2815d9d2f4ac723600 /Modules/cjkcodecs/multibytecodec.h | |
parent | 958acd2da0525115e953aca5c43056c88000e8d0 (diff) | |
download | cpython-0b858cdd5d114f0890b11b6c4d6559d0ceb468ab.zip cpython-0b858cdd5d114f0890b11b6c4d6559d0ceb468ab.tar.gz cpython-0b858cdd5d114f0890b11b6c4d6559d0ceb468ab.tar.bz2 |
bpo-1635741: Convert _multibytecodec to multi-phase init (GH-24095)
Convert the _multibytecodec extension module (CJK codecs) to multi-phase
initialization (PEP 489).
Diffstat (limited to 'Modules/cjkcodecs/multibytecodec.h')
-rw-r--r-- | Modules/cjkcodecs/multibytecodec.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/cjkcodecs/multibytecodec.h b/Modules/cjkcodecs/multibytecodec.h index 5946821..69404ba 100644 --- a/Modules/cjkcodecs/multibytecodec.h +++ b/Modules/cjkcodecs/multibytecodec.h @@ -65,7 +65,7 @@ typedef struct { MultibyteCodec *codec; } MultibyteCodecObject; -#define MultibyteCodec_Check(op) Py_IS_TYPE((op), &MultibyteCodec_Type) +#define MultibyteCodec_Check(state, op) Py_IS_TYPE((op), state->multibytecodec_type) #define _MultibyteStatefulCodec_HEAD \ PyObject_HEAD \ |