+def fonts(data):
+ for l in data:
+ key, value = getkeyval(l)
+ if key and value:
+ if key == 'window.font':
+ out('You appear to specify fonts using the old X fonts ' +
+ 'syntax.\nShall I remove all fonts from the theme (Y/n)? ')
+ if not read_bool():
+ return
+ i = 0
+ n = len(data)
+ while i < n:
+ l = data[i]
+ key, value = getkeyval(l)
+ if key and value:
+ if key.find('font') != -1:
+ out('Removing "' + key + '"\n')
+ data.pop(i)
+ i -= 1
+ n -= 1
+ i += 1