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/hostels/hostel.py

    r9448 r9701  
    119119                        bt = u'%s_%s_%s' % (self.special_handling,sex,bt)
    120120                        uid = u'%s_%s_%d_%s' % (self.hostel_id,block,room_nr,bed)
    121                         if self.has_key(uid):
     121                        if uid in self:
    122122                            bed = self[uid]
    123123                            # Renumber remaining beds
Note: See TracChangeset for help on using the changeset viewer.