Skip to content

Commit 09547f0

Browse files
committed
extmod/modubinascii: Only include uzlib/tinf.h when it's really needed.
1 parent 4556bd2 commit 09547f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extmod/modubinascii.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@
3333
#include "py/binary.h"
3434
#include "extmod/modubinascii.h"
3535

36-
#include "uzlib/tinf.h"
37-
3836
mp_obj_t mod_binascii_hexlify(size_t n_args, const mp_obj_t *args) {
3937
// Second argument is for an extension to allow a separator to be used
4038
// between values.
@@ -221,6 +219,8 @@ mp_obj_t mod_binascii_b2a_base64(mp_obj_t data) {
221219
MP_DEFINE_CONST_FUN_OBJ_1(mod_binascii_b2a_base64_obj, mod_binascii_b2a_base64);
222220

223221
#if MICROPY_PY_UBINASCII_CRC32
222+
#include "uzlib/tinf.h"
223+
224224
mp_obj_t mod_binascii_crc32(size_t n_args, const mp_obj_t *args) {
225225
mp_buffer_info_t bufinfo;
226226
mp_get_buffer_raise(args[0], &bufinfo, MP_BUFFER_READ);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy