We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d45155 commit 489c1a9Copy full SHA for 489c1a9
py2bit.c
@@ -146,8 +146,8 @@ error :
146
}
147
148
#if PY_MAJOR_VERSION >= 3
149
-PyString_FromString(char *seq) {
150
- return PyBytes_FromString(seq);
+PyObject *PyString_FromString(char *seq) {
+ return PyUnicode_FromString(seq);
151
152
#endif
153
py2bit.h
@@ -144,7 +144,7 @@ struct py2bitmodule_state {
144
145
#define GETSTATE(m) ((struct py2bitmodule_state*)PyModule_GetState(m))
-static PyModuleDef py2Bitmodule = {
+static PyModuleDef py2bitmodule = {
PyModuleDef_HEAD_INIT,
"py2bit",
"A python module for accessing 2bit files",
0 commit comments