From c2cbdf9c44a0dd55b8f19ccb03c3ba449b159223 Mon Sep 17 00:00:00 2001 From: Oleg Shteynbuk Date: Sun, 4 Jun 2017 23:29:23 -0400 Subject: [PATCH] changed to using existing function _ensure_encoded in parsers.pyx --- pandas/_libs/parsers.pyx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx index 5e4b262b0d013..fe1656b78eaf6 100644 --- a/pandas/_libs/parsers.pyx +++ b/pandas/_libs/parsers.pyx @@ -275,16 +275,10 @@ cdef extern from "parser/io.h": DEFAULT_CHUNKSIZE = 256 * 1024 - -def c_type_conv(st): - cdef bytes py_bytes = st.encode() - return py_bytes - - # common NA values # no longer excluding inf representations # '1.#INF','-1.#INF', '1.#INF000000', -_NA_VALUES = [c_type_conv(x) for x in parsers._NA_VALUES] +_NA_VALUES =_ensure_encoded(in parsers._NA_VALUES) cdef class TextReader: