chiark / gitweb /
Release 1.0.5.
[mLib-python] / url.pyx
diff --git a/url.pyx b/url.pyx
index d4ed1217eb784fc19d421f7fbdb66ef52c894478..ef7e36c997efd832b143d0bc6a560bc0f00ba5da 100644 (file)
--- a/url.pyx
+++ b/url.pyx
@@ -1,35 +1,33 @@
-# -*-pyrex-*-
-#
-# $Id$
-#
-# Form-urlencoding functions
-#
-# (c) 2006 Straylight/Edgeware
-#
+### -*-pyrex-*-
+###
+### Form-urlencoding functions
+###
+### (c) 2006 Straylight/Edgeware
+###
 
-#----- Licensing notice -----------------------------------------------------
-#
-# This file is part of the Python interface to mLib.
-#
-# mLib/Python is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# mLib/Python is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with mLib/Python; if not, write to the Free Software Foundation,
-# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+###----- Licensing notice ---------------------------------------------------
+###
+### This file is part of the Python interface to mLib.
+###
+### mLib/Python is free software; you can redistribute it and/or modify
+### it under the terms of the GNU General Public License as published by
+### the Free Software Foundation; either version 2 of the License, or
+### (at your option) any later version.
+###
+### mLib/Python is distributed in the hope that it will be useful,
+### but WITHOUT ANY WARRANTY; without even the implied warranty of
+### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+### GNU General Public License for more details.
+###
+### You should have received a copy of the GNU General Public License
+### along with mLib/Python; if not, write to the Free Software Foundation,
+### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 cdef class URLEncode:
   cdef url_ectx ctx
   cdef dstr d
 
-  def __new__(me, *hunoz, **hukairz):
+  def __cinit__(me, *hunoz, **hukairz):
     url_initenc(&me.ctx)
     DCREATE(&me.d)
   def __init__(me, strictp = False, laxp = False, semip = False):
@@ -79,7 +77,7 @@ cdef class URLDecode:
   cdef url_dctx ctx
   cdef char *p
 
-  def __new__(me, *hunoz, **hukairz):
+  def __cinit__(me, *hunoz, **hukairz):
     me.p = xstrdup('')
     url_initdec(&me.ctx, me.p)
   def __init__(me, char *string, semip = False):
@@ -121,4 +119,4 @@ cdef class URLDecode:
   def __del__(me):
     xfree(me.p)
 
-#----- That's all, folks ----------------------------------------------------
+###----- That's all, folks --------------------------------------------------