Changeset 8785


Ignore:
Timestamp:
24 Jun 2012, 08:34:52 (13 years ago)
Author:
Henrik Bettermann
Message:

Improve gender conversion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/tools/fix_import_file.py

    r8784 r8785  
    259259        """ 'True'/'False' --> 'f'/'m'
    260260        """
    261         if value in ('F', 'True','f'):
     261        if value.strip() in ('F', 'True','f'):
    262262            value = 'f'
    263         elif value in ('M', 'False','m'):
     263        elif value.strip() in ('M', 'False','m'):
    264264            value = 'm'
    265265        else:
Note: See TracChangeset for help on using the changeset viewer.