summaryrefslogtreecommitdiff
path: root/portato/eix/eix_utils.pyx
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-07-27 00:38:41 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-07-27 00:38:41 +0200
commit40344af86dbe9c7ad2f38b18f31f0f8a4917bda9 (patch)
treed5bcea29fcf380796fc627346115c81c78ad2926 /portato/eix/eix_utils.pyx
parente10334539d6b6c8c01d5936aa68e1b4b42f85963 (diff)
downloadportato-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.pyx15
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)