Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
14 changes: 11 additions & 3 deletions ext/rle.c
Original file line number Diff line number Diff line change
Expand Up @@ -939,9 +939,17 @@ static PyMethodDef rle_methods[] =
{NULL, NULL, 0, NULL}
};

PyMODINIT_FUNC
initrle(void)
static struct PyModuleDef rle =
{
(void) Py_InitModule("rle", rle_methods);
PyModuleDef_HEAD_INIT,
"rle", /* name of module */
"", /* module documentation, may be NULL */
-1, /* size of per-interpreter state of the module, or -1 if the module keeps state in global variables. */
rle_methods
};

PyMODINIT_FUNC PyInit_rle(void)
{
return PyModule_Create(&rle);
}

4 changes: 2 additions & 2 deletions rdpy/core/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def log(message):
@summary: Main log function
@param message: string to print
"""
print "[*] %s"%message
print ("[*] %s"%message)

def error(message):
"""
Expand Down Expand Up @@ -75,4 +75,4 @@ def debug(message):
"""
if _LOG_LEVEL > Level.DEBUG:
return
log("DEBUG:\t%s"%message)
log("DEBUG:\t%s"%message)