Changeset 833 for trunk/pg.py


Ignore:
Timestamp:
Feb 7, 2016, 9:28:49 AM (4 years ago)
Author:
cito
Message:

Small fixes to make trunk run with Python 2.6 again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pg.py

    r822 r833  
    193193                self['_%s' % key] = '%s[]' % typ
    194194
    195     @staticmethod
    196     def __missing__(key):
     195    # this could be a static method in Python > 2.6
     196    def __missing__(self, key):
    197197        return 'text'
    198198
Note: See TracChangeset for help on using the changeset viewer.