chiark / gitweb /
Expunge trailing spaces
authorMark Wooding <mdw@distorted.org.uk>
Mon, 23 Jul 2007 14:59:03 +0000 (15:59 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 21 Sep 2008 15:16:54 +0000 (16:16 +0100)
33 files changed:
array.c
array.h
assoc.pyx
atom-base.c
atom.h
atom.pyx
bres.pyx
codec.pyx.in
conn.pyx
crc32.pyx
debian/changelog
defs.pxi
fdutils.pyx
fwatch.pyx
grim.h
ident.pyx
lbuf.pyx
mLib.pyx
mapping.pyx
pkbuf.pyx
report.pyx
sel-base.pyx
sel-file.pyx
sel-timer.pyx
selbuf.pyx
selpk.pyx
setup.py
sig.pyx
str.pyx
sym.pyx
unihash.pyx
url.pyx
utils.pyx

diff --git a/array.c b/array.c
index 6f8048a37997ef3abe7a3ec2d3d24384089c6fed..768a926313edbab4dc5088902d8b77b1036294ff 100644 (file)
--- a/array.c
+++ b/array.c
@@ -7,7 +7,7 @@
  * (c) 2005 Straylight/Edgeware
  */
 
-/*----- Licensing notice --------------------------------------------------* 
+/*----- Licensing notice --------------------------------------------------*
  *
  * This file is part of the Python interface to mLib.
  *
  * 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.
@@ -218,7 +218,7 @@ static int da_insert(PyObject *me, PyObject *seq, int start, int end)
 {
   PyObject **items;
   size_t n;
-  
+
   if (0 > start || start > end || end > DA_LEN(DA_V(me))) {
     PyErr_SetString(PyExc_IndexError, "bad slice");
     return (-1);
@@ -341,7 +341,7 @@ static PyObject *da_pygetslice(PyObject *me, int i, int j)
 static int da_pyputitem(PyObject *me, int i, PyObject *x)
 {
   PyObject **p;
-  
+
   if (i < 0 || i >= DA_LEN(DA_V(me))) {
     PyErr_SetString(PyExc_IndexError, "index out of range");
     return (-1);
@@ -383,7 +383,7 @@ static PyObject *da_pyrepr(PyObject *me)
   dstr_puts(&d, "Array([");
   for (i = 0; i < DA_LEN(DA_V(me)); i++) {
     if ((s = PyObject_Repr(DA(DA_V(me))[i])) == 0 ||
-        PyString_AsStringAndSize(s, &p, &n)) {
+       PyString_AsStringAndSize(s, &p, &n)) {
       Py_XDECREF(s);
       goto done;
     }
diff --git a/array.h b/array.h
index 96d4f9ad88626b35c124f659efe165e52cc2f2c4..832519af1479b6f2c0deaea06c2b6b63c10c9073 100644 (file)
--- a/array.h
+++ b/array.h
@@ -7,7 +7,7 @@
  * (c) 2005 Straylight/Edgeware
  */
 
-/*----- Licensing notice --------------------------------------------------* 
+/*----- Licensing notice --------------------------------------------------*
  *
  * This file is part of the Python interface to mLib.
  *
  * 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.
index 26369de3c5384b1afe58b15f9ef8ad652051d90b..535fa03aabde5020c967d63aaffa02d0ac104921 100644 (file)
--- a/assoc.pyx
+++ b/assoc.pyx
 # 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.
@@ -56,7 +56,7 @@ cdef class AssocTable (Mapping):
     ee = <_assoc_entry *>e
     Py_INCREF(ee.v)
     return <object>ee.v
-  cdef void _setval(me, void *e, object val): 
+  cdef void _setval(me, void *e, object val):
     cdef _assoc_entry *ee
     ee = <_assoc_entry *>e
     if ee.v:
index e59fa2bc8e03a6e79862251cc6ad2e68d07c6f70..62a45a67f097577399c71dbffb9ca3bcaf8a361f 100644 (file)
@@ -7,7 +7,7 @@
  * (c) 2005 Straylight/Edgeware
  */
 
-/*----- Licensing notice --------------------------------------------------* 
+/*----- Licensing notice --------------------------------------------------*
  *
  * This file is part of the Python interface to mLib.
  *
  * 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.
@@ -60,7 +60,7 @@ PyObject *atom_pywrap(atom *a)
     atom_pyobj *ao = PyObject_NEW(atom_pyobj, &atom_pytype);
     ao->a = a;
     e->a = (PyObject *)ao;
-  } 
+  }
   RETURN_OBJ(e->a);
 }
 
@@ -82,7 +82,7 @@ PyObject *atom_pyintern(PyObject *x)
 }
 
 static void atom_pydealloc(PyObject *me)
-  { fprintf(stderr, "ouch!  freeing atom\n"); abort();  }
+  { fprintf(stderr, "ouch!  freeing atom\n"); abort(); }
 
 static PyObject *atom_pynew(PyTypeObject *ty, PyObject *arg, PyObject *kw)
 {
diff --git a/atom.h b/atom.h
index 6bc5bd3582d0376e23b07b18b623a9befe43bc25..3f1a04feb16890b8455fe24bce5b5652ba2b761e 100644 (file)
--- a/atom.h
+++ b/atom.h
@@ -7,7 +7,7 @@
  * (c) 2005 Straylight/Edgeware
  */
 
-/*----- Licensing notice --------------------------------------------------* 
+/*----- Licensing notice --------------------------------------------------*
  *
  * This file is part of the Python interface to mLib.
  *
  * 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.
index fc935f8660e22ba16583427e1677e2f6a18e840f..5c0cde63909e0563d5b4edbcfa63ba3f7055cbc6 100644 (file)
--- a/atom.pyx
+++ b/atom.pyx
 # 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.
index 30aac12308722e3147e6b04716c1dfd5dc663b25..0ddfb116a1c1e5b59b4d9d29384fd76c584a7409 100644 (file)
--- a/bres.pyx
+++ b/bres.pyx
 # 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.
index ad602693c852e23fef2c628a76d6d86e1935fa75..e68323327b12201a316a7da982a9a98d010a8291 100644 (file)
 # 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.
@@ -49,7 +49,7 @@ cdef class %CLASS%Encode:
     me.ctx.maxline = maxline
   def __dealloc__(me):
     if me.ctx.indent:
-      xfree(me.ctx.indent)    
+      xfree(me.ctx.indent)
   property indent:
     def __get__(me):
       return me.ctx.indent
@@ -113,7 +113,7 @@ cdef class %CLASS%Decode:
       rc = PyString_FromStringAndSize(d.buf, d.len)
     finally:
       dstr_destroy(&d)
-    return rc  
+    return rc
 
 def %PREFIX%_decode(text, *arg, **kw):
   d = %CLASS%Decode(*arg, **kw)
index e485f5d1daba8bd053fab3ec9f47a69575b35f29..04b9ffa6b95e25f10fe436b472ba5f33bd5d6324 100644 (file)
--- a/conn.pyx
+++ b/conn.pyx
 # 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.
index 77bc8636a393361cfdff1b1b21b852bfc0729c52..f76ef5edea082320cc40021d525639b46b2d2dbb 100644 (file)
--- a/crc32.pyx
+++ b/crc32.pyx
 # 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.
index 32301dadcf75feef70a4518c4bf1f00ec97ab749..9865ad9f29c00d0e7db38eb80eedcef95f6f796c 100644 (file)
@@ -2,4 +2,4 @@ python-mlib (1.0.0) experimental; urgency=low
 
   * Debianization!
 
- -- Mark Wooding <mdw@distorted.org.uk>  Thu, 13 Oct 2005 18:14:18 +0100
+ -- Mark Wooding <mdw@distorted.org.uk>  Mon, 23 Jul 2007 16:02:27 +0100
index f452b28ad44e6457b28b5d30d016b9f194d277fe..a09130cc22528937052ea6ce60555dc9a80decc5 100644 (file)
--- a/defs.pxi
+++ b/defs.pxi
 # 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.
@@ -250,7 +250,7 @@ cdef extern from 'mLib/lbuf.h':
   void lbuf_enable(lbuf *b)
   void lbuf_disable(lbuf *b)
   void lbuf_init(lbuf *b,
-                 void (*func)(char *s, size_t len, void *arg), void *arg)
+                void (*func)(char *s, size_t len, void *arg), void *arg)
   void lbuf_destroy(lbuf *b)
 
 #----- Packet buffer --------------------------------------------------------
@@ -266,9 +266,9 @@ cdef extern from 'mLib/pkbuf.h':
   size_t pkbuf_free(pkbuf *pk, unsigned char **p)
   void pkbuf_want(pkbuf *pk, size_t sz)
   void pkbuf_init(pkbuf *b,
-                  void (*func)(unsigned char *s, size_t len,
-                               pkbuf *pk, size_t *keep, void *arg),
-                  void *arg)
+                 void (*func)(unsigned char *s, size_t len,
+                              pkbuf *pk, size_t *keep, void *arg),
+                 void *arg)
   void pkbuf_destroy(pkbuf *b)
 
 #----- Select stuff ---------------------------------------------------------
@@ -288,14 +288,14 @@ cdef extern from 'mLib/sel.h':
     _SEL_EXC "SEL_EXC"
   void sel_init(sel_state *s)
   void sel_initfile(sel_state *s, sel_file *f, int fd, unsigned mode,
-                    void (*func)(int fd, unsigned mode, void *arg),
-                    void *arg)
+                   void (*func)(int fd, unsigned mode, void *arg),
+                   void *arg)
   void sel_force(sel_file *f)
   void sel_addfile(sel_file *f)
   void sel_rmfile(sel_file *f)
   void sel_addtimer(sel_state *s, sel_timer *t, timeval *tv,
-                    void (*func)(timeval *tv, void *arg),
-                    void *arg)
+                   void (*func)(timeval *tv, void *arg),
+                   void *arg)
   void sel_rmtimer(sel_timer *t)
   int sel_select(sel_state *s) except *
 
@@ -305,7 +305,7 @@ cdef extern from 'mLib/conn.h':
   ctypedef struct conn:
     pass
   int conn_fd(conn *c, sel_state *s, int fd,
-              void (*func)(int fd, void *arg), void *arg)
+             void (*func)(int fd, void *arg), void *arg)
   void conn_kill(conn *c)
 
 # --- Background name resolver ---
@@ -314,9 +314,9 @@ cdef extern from 'mLib/bres.h':
   ctypedef struct bres_client:
     pass
   void bres_byname(bres_client *r, char *name,
-                   void (*func)(hostent *h, void *arg), void *arg)
+                  void (*func)(hostent *h, void *arg), void *arg)
   void bres_byaddr(bres_client *r, in_addr addr,
-                   void (*func)(hostent *h, void *arg), void *arg)
+                  void (*func)(hostent *h, void *arg), void *arg)
   void bres_abort(bres_client *r)
   void bres_exec(char *null)
   void bres_init(sel_state *s)
@@ -340,7 +340,7 @@ cdef extern from 'mLib/selbuf.h':
   void selbuf_disable(selbuf *b)
   void selbuf_setsize(selbuf *b, size_t sz)
   void selbuf_init(selbuf *b, sel_state *s, int fd,
-                   void (*func)(char *s, size_t len, void *arg), void *arg)
+                  void (*func)(char *s, size_t len, void *arg), void *arg)
   void selbuf_destroy(selbuf *b)
 
 # --- Packet buffer ---
@@ -353,9 +353,9 @@ cdef extern from 'mLib/selpk.h':
   void selpk_disable(selpk *b)
   void selpk_want(selpk *b, size_t sz)
   void selpk_init(selpk *b, sel_state *s, int fd,
-                  void (*func)(unsigned char *p, size_t n,
-                               pkbuf *pk, size_t *keep, void *arg),
-                  void *arg)
+                 void (*func)(unsigned char *p, size_t n,
+                              pkbuf *pk, size_t *keep, void *arg),
+                 void *arg)
   void selpk_destroy(selpk *b)
 
 # --- Ident client ---
@@ -379,9 +379,9 @@ cdef extern from 'mLib/ident.h':
     int type
     ident_u u
   void ident(ident_request *rq, sel_state *s,
-             sockaddr_in *local, sockaddr_in *remote,
-             void (*func)(ident_reply *r, void *arg),
-             void *arg)
+            sockaddr_in *local, sockaddr_in *remote,
+            void (*func)(ident_reply *r, void *arg),
+            void *arg)
   void ident_abort(ident_request *rq)
 
 #----- Error reporting ------------------------------------------------------
@@ -407,8 +407,8 @@ cdef extern from 'mLib/fwatch.h':
 
 cdef extern from 'mLib/fdflags.h':
   int _fdflags "fdflags"(int fd,
-                         unsigned fbic, unsigned fxor,
-                         unsigned fdbic, unsigned fdxor)
+                        unsigned fbic, unsigned fxor,
+                        unsigned fdbic, unsigned fdxor)
 
 cdef extern from 'mLib/fdpass.h':
   int fdpass_send(int sock, int fd, void *p, size_t sz)
index 7923d441373e7f86dbec09de05ea98af800f1fa7..c6ba79e2c82a36465fbdb8dfb990712001aaaeb3 100644 (file)
 # 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.
index a9e4b97eaedf4b614cad7e7b0c50f381a642afb2..ab0ae252947ebdf2455da4d688fd7ea7c1bfdbef 100644 (file)
 # 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 FWatch:
   cdef fwatch fw
-  cdef file
+  cdef public file
   def __new__(me, file):
-    _init(me, file)
+    me._init(file)
   def __init__(me, file):
-    _init(me, file)
+    me._init(file)
   cdef _init(me, file):
     if isinstance(file, str):
       fwatch_init(&me.fw, file)
@@ -39,9 +39,11 @@ cdef class FWatch:
       fwatch_initfd(&me.fw, _getfd(file))
     me.file = file
   def update(me):
+    cdef int rc
     if isinstance(me.file, str):
-      fwatch_update(&me.fw, me.file)
+      rc = fwatch_update(&me.fw, me.file)
     else:
-      fwatch_initfd(&me.fw, _getfd(me.file))
+      rc = fwatch_updatefd(&me.fw, _getfd(me.file))
+    return rc
 
 #----- That's all, folks ----------------------------------------------------
diff --git a/grim.h b/grim.h
index 80570a0c0d2f3a48680b3e5b007f53ad4129ffc1..75774a57c2c063149927142058f3838e16f4ce64 100644 (file)
--- a/grim.h
+++ b/grim.h
@@ -7,7 +7,7 @@
  * (c) 2005 Straylight/Edgeware
  */
 
-/*----- Licensing notice --------------------------------------------------* 
+/*----- Licensing notice --------------------------------------------------*
  *
  * This file is part of the Python interface to mLib.
  *
  * 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.
index d19c3a4599c8a8ae3423294089b736a8628aea65..8f143ec23f440b87072bd361ebf08b59a1dddb91 100644 (file)
--- a/ident.pyx
+++ b/ident.pyx
 # 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.
index 820cba1c4326d624810f3a52aa9f9467d3544654..fe9f00eb677a1988d5f470131df032bc1e80b517 100644 (file)
--- a/lbuf.pyx
+++ b/lbuf.pyx
 # 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.
index 2a43cbd2b86e7553b4c01084ef99c761025e48a4..2b25fcdffcdf45802ec8dbcdfa7f54bd69f87513 100644 (file)
--- a/mLib.pyx
+++ b/mLib.pyx
 # 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.
index ab637c3f78cfe02c23d40af7135a7f48f701a7c1..551261ec3626d13ec3bbf429cbd3f61bb7ab02e3 100644 (file)
 # 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.
@@ -134,7 +134,7 @@ cdef class Mapping:
         break
       l.append(func(me, e))
     return l
-    
+
   def keys(me):
     return me._list(_map_key)
   def values(me):
@@ -162,7 +162,7 @@ cdef class Mapping:
     return MapValueIter(me)
   def iteritems(me):
     return MapItemIter(me)
-  
+
 cdef class MapIterBase:
   cdef Mapping m
   cdef object (*func)(Mapping m, void *e)
index 9626a98c30b6c009ee065c59895497d19b765bdd..9bad2680055fbc52766472e2e45df959f1fa7b92 100644 (file)
--- a/pkbuf.pyx
+++ b/pkbuf.pyx
 # 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.
index cb368f6f71042e1a2eceab6681d5c952f5d02e0f..f83a193a7f06b199dc3aec4427c9c1bb7b5608bd 100644 (file)
 # 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.
index e7b4fbe7329a9a6a51132cc95772834de8fb3f3b..29cf6c401b36e070e81e8d7c46be4b0281616f04 100644 (file)
 # 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.
index 9135d4a429eb563ca8d7b4892e1c0550b9393235..53af55e479c1dc0fe84ad14a405271fef6f3fbc0 100644 (file)
 # 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.
index 261ecde10db47df064c3bb1f2fd4c61246e93ca1..6e0071786091713830d495fa2f9211dc17a8bc4c 100644 (file)
 # 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.
index 4a5a28898ca9e72ac1b2a3901d3846fc23d36b10..e0586fceed5f0af49ec5e2b59456ea6e61892658 100644 (file)
 # 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.
index fe85a9f0f08ffd86f80f254427bdb872b5c92d25..59d500f305b1613535c8d6d63d8563250048b6dc 100644 (file)
--- a/selpk.pyx
+++ b/selpk.pyx
 # 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.
index de8e515cf2944fe9af2b99dcdd20e991ca7a1a85..5408b70bc54ccde1a17935c9389f786dade21c1b 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -55,7 +55,7 @@ def derive(target, src, subs):
   if needs_update_p(target, [src]):
       out = file(target + '.new', 'w')
       for line in file(src):
-        out.write(rx_subst.sub((lambda m: subs[m.group(1)]), line))
+       out.write(rx_subst.sub((lambda m: subs[m.group(1)]), line))
       out.close()
       rename(target + '.new', target)
 
@@ -77,11 +77,11 @@ def mlibext(src):
     srcs = [src]
 
 mlib = Extension('mLib', ['mLib.pyx', 'atom-base.c', 'array.c'],
-                 
-                 ##extra_compile_args = ['-O0'],
-                 include_dirs = uniquify(incdirs),
-                 library_dirs = uniquify(libdirs),
-                 libraries = uniquify(libs))
+
+                ##extra_compile_args = ['-O0'],
+                include_dirs = uniquify(incdirs),
+                library_dirs = uniquify(libdirs),
+                libraries = uniquify(libs))
 
 setup(name = 'mLib-python',
       version = '1.0.0',
diff --git a/sig.pyx b/sig.pyx
index 17237f349a990f920328bc0d9b217143c141af08..6496016e53fe357fafec92f001529fbc9069cac6 100644 (file)
--- a/sig.pyx
+++ b/sig.pyx
 # 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.
diff --git a/str.pyx b/str.pyx
index bbde1b0a2af01d0d1dca22f0ce89b2e43d66b1b0..a87f12cdbf883f4639cf9d3967f96619fce78e0c 100644 (file)
--- a/str.pyx
+++ b/str.pyx
 # 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.
diff --git a/sym.pyx b/sym.pyx
index 880d63678ac2196d433e30cdba63be21b8f1fff6..8de6938bc8dac4dc1ef9b62c364c428156113ff0 100644 (file)
--- a/sym.pyx
+++ b/sym.pyx
 # 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.
@@ -54,7 +54,7 @@ cdef class SymTable (Mapping):
     ee = <_sym_entry *>e
     Py_INCREF(ee.v)
     return <object>ee.v
-  cdef void _setval(me, void *e, object val): 
+  cdef void _setval(me, void *e, object val):
     cdef _sym_entry *ee
     ee = <_sym_entry *>e
     if ee.v:
index b1cb979abf8df1c0a956861b5673e7d649f7c74b..565959f77814abe668e30798fbe4e2dca77146d3 100644 (file)
 # 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.
diff --git a/url.pyx b/url.pyx
index 20c51ce0efdf62ad0184e6fa60f983bf9091c54a..d4ed1217eb784fc19d421f7fbdb66ef52c894478 100644 (file)
--- a/url.pyx
+++ b/url.pyx
 # 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.
@@ -71,7 +71,7 @@ cdef class URLEncode:
       if val:
         me.ctx.f = me.ctx.f | URLF_SEMI
       else:
-        me.ctx.f = me.ctx.f & ~URLF_SEMI  
+        me.ctx.f = me.ctx.f & ~URLF_SEMI
   def __del__(me):
     dstr_destroy(&me.d)
 
index 849effea3f11dbf37963653c369ccb7a9f994b1b..9183625334a1f25fbd9961ab278886dc2b26fd40 100644 (file)
--- a/utils.pyx
+++ b/utils.pyx
 # 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.