Changeset 10884 in genesis for tools


Ignore:
Timestamp:
May 16, 2012, 7:58:14 PM (13 years ago)
Author:
rick
Message:

Ruim er nog een paar op die we automatisch konden vinden.

While here; Comment begint met een hoofdletter.

Related-To beheer:ticket:218

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r10882 r10884  
    15071507
    15081508            if datadump[iface_key]['comment'].startswith('autogen-') and datadump[iface_key].has_key('comment'):
    1509               datadump[iface_key]['comment'] = datadump[iface_key]['desc']
    1510 
    1511             if datadump[iface_key].has_key('desc') and datadump[iface_key]['comment'] == datadump[iface_key]['desc']:
     1509              datadump[iface_key] = datadump[iface_key]['desc']
     1510
     1511            x = datadump[iface_key]['comment']
     1512            datadump[iface_key]['comment'] = x[0].upper() + x[1:]
     1513           
     1514
     1515            if datadump[iface_key].has_key('desc') and datadump[iface_key]['comment'].lower() == datadump[iface_key]['desc'].lower():
    15121516              del datadump[iface_key]['desc']
    15131517
Note: See TracChangeset for help on using the changeset viewer.