Ignore:
Timestamp:
20 Nov 2012, 11:16:38 (12 years ago)
Author:
Henrik Bettermann
Message:

Replace 'has_key' by 'in'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/university/batching.py

    r9333 r9701  
    9797        items_changed = ''
    9898
    99         if row.has_key('local_roles') and row['local_roles'] not in (
     99        if 'local_roles' in row and row['local_roles'] not in (
    100100            None, IGNORE_MARKER):
    101101            role_manager = IPrincipalRoleManager(obj)
     
    133133        errs, inv_errs, conv_dict =  super(
    134134            FacultyProcessor, self).checkConversion(row, mode=mode)
    135         if row.has_key('local_roles'):
     135        if 'local_roles' in row:
    136136            if row['local_roles'] in (None, DELETION_MARKER, IGNORE_MARKER):
    137137                return errs, inv_errs, conv_dict
Note: See TracChangeset for help on using the changeset viewer.