diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-07-27 00:38:41 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-07-27 00:38:41 +0200 |
commit | 40344af86dbe9c7ad2f38b18f31f0f8a4917bda9 (patch) | |
tree | d5bcea29fcf380796fc627346115c81c78ad2926 /portato/eix/eix_utils.pyx | |
parent | e10334539d6b6c8c01d5936aa68e1b4b42f85963 (diff) | |
download | portato-40344af86dbe9c7ad2f38b18f31f0f8a4917bda9.tar.gz portato-40344af86dbe9c7ad2f38b18f31f0f8a4917bda9.tar.bz2 portato-40344af86dbe9c7ad2f38b18f31f0f8a4917bda9.zip |
Moved from Cython to normal Python
Diffstat (limited to '')
-rw-r--r-- | portato/eix/eix_utils.pyx | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/portato/eix/eix_utils.pyx b/portato/eix/eix_utils.pyx deleted file mode 100644 index 0ea9603..0000000 --- a/portato/eix/eix_utils.pyx +++ /dev/null @@ -1,15 +0,0 @@ -cdef char* strdup (char * other) except NULL: - cdef size_t len - cdef char* new - - if other is NULL: - return NULL - - len = strlen(other) - new = <char*>PyMem_Malloc(len+1) - - if new is NULL: - raise MemoryError, "Malloc of new string copy" - return NULL - - return strcpy(new, other) |