8000 BLD/CI: fix py39 ci #36296 by fangchenli · Pull Request #36393 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

BLD/CI: fix py39 ci #36296 #36393

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Sep 16, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
BLD/CI fix deprecated unicode lenght check #36296
  • Loading branch information
fangchenli committed Sep 16, 2020
commit 3c4633e72c9ea4f06bdf3a00356a19167a8115f3
4 changes: 2 additions & 2 deletions pandas/_libs/writers.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import cython
from cython import Py_ssize_t

from cpython.bytes cimport PyBytes_GET_SIZE
from cpython.unicode cimport PyUnicode_GET_SIZE
from cpython.unicode cimport PyUnicode_GET_LENGTH

import numpy as np

Expand Down Expand Up @@ -144,7 +144,7 @@ cpdef inline Py_ssize_t word_len(object val):
Py_ssize_t l = 0

if isinstance(val, str):
l = PyUnicode_GET_SIZE(val)
l = PyUnicode_GET_LENGTH(val)
elif isinstance(val, bytes):
l = PyBytes_GET_SIZE(val)

Expand Down
0