# HG changeset patch # User gpiancastelli # Date 1251838517 -7200 # Node ID 84eb02cbf057af274f9f0421727f04d12646476d # Parent ad6d3f5245e72f704711ec73093de5c1ceef13ff Be more Pythonic. diff -r ad6d3f5245e7 -r 84eb02cbf057 it/web/genindex.py --- a/it/web/genindex.py Fri Aug 28 12:21:45 2009 +0200 +++ b/it/web/genindex.py Tue Sep 01 22:55:17 2009 +0200 @@ -43,14 +43,14 @@ else: num = str(ch) + '. ' ch += 1 - if title.find('&') >= 0: + if '&' in title: title = title.replace('&', '\&') ab += 1 date = os.popen('hg log -l1 --template "{date|isodate}" ' + c).read().split(None, 1)[0] args = { 'ab': "ab"[ab % 2], 'date': date, - 'chapid': chapid, + # 'chapid': chapid, 'num': num, 'filename': filename, 'title': title,