schemas/_regproc_bss.postgres.sql
changeset 4328 b8112afb213c
parent 4322 f65743cc53e4
child 4941 ec27aea9632b
--- a/schemas/_regproc_bss.postgres.sql	Fri Jan 22 10:43:12 2010 +0100
+++ b/schemas/_regproc_bss.postgres.sql	Fri Jan 22 11:18:13 2010 +0100
@@ -10,12 +10,12 @@
     fpath = args[0]
     if fpath:
         try:
-	    data = file(fpath, 'rb').read()
-	    #/* XXX due to plpython bug we have to replace some characters... */
+            data = file(fpath, 'rb').read()
+            #/* XXX due to plpython bug we have to replace some characters... */
             return data.replace("\\", r"\134").replace("\000", r"\000").replace("'", r"\047") #'
         except Exception, ex:
-	    plpy.warning('failed to get content for %s: %s', fpath, ex)
-     return None
+            plpy.warning('failed to get content for %s: %s', fpath, ex)
+    return None
 $$ LANGUAGE plpythonu
 /* WITH(ISCACHABLE) XXX does postgres handle caching of large data nicely */
 ;;