Changeset 600


Ignore:
Timestamp:
Nov 22, 2015, 9:02:10 AM (4 years ago)
Author:
cito
Message:

Make use of decorator syntax

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/module/pgdb.py

    r599 r600  
    166166        self._src = cnx.source()
    167167
     168    @staticmethod
    168169    def typecast(typ, value):
    169170        """Cast value to database type."""
     
    177178        else:
    178179            return cast(value)
    179     typecast = staticmethod(typecast)
    180180
    181181    def getdescr(self, oid):
     
    413413        return res
    414414
     415    @staticmethod
    415416    def nextset():
    416417        """Not supported."""
    417418        raise NotSupportedError("nextset() is not supported")
    418     nextset = staticmethod(nextset)
    419419
    420420    def setinputsizes(sizes):
Note: See TracChangeset for help on using the changeset viewer.