Author: cito
Date: Sun Nov 22 09:02:10 2015
New Revision: 600

Log:
Make use of decorator syntax

Modified:
   trunk/module/pgdb.py

Modified: trunk/module/pgdb.py
==============================================================================
--- trunk/module/pgdb.py        Sun Nov 22 08:59:01 2015        (r599)
+++ trunk/module/pgdb.py        Sun Nov 22 09:02:10 2015        (r600)
@@ -165,6 +165,7 @@
         super(pgdbTypeCache, self).__init__()
         self._src = cnx.source()
 
+    @staticmethod
     def typecast(typ, value):
         """Cast value to database type."""
         if value is None:
@@ -176,7 +177,6 @@
             return value
         else:
             return cast(value)
-    typecast = staticmethod(typecast)
 
     def getdescr(self, oid):
         """Get name of database type with given oid."""
@@ -412,10 +412,10 @@
             raise StopIteration
         return res
 
+    @staticmethod
     def nextset():
         """Not supported."""
         raise NotSupportedError("nextset() is not supported")
-    nextset = staticmethod(nextset)
 
     def setinputsizes(sizes):
         """Not supported."""
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql

Reply via email to