hgbook

changeset 863:84eb02cbf057

Be more Pythonic.
author gpiancastelli
date Tue Sep 01 22:55:17 2009 +0200 (2009-09-01)
parents ad6d3f5245e7
children 9afafe9af05f
files it/web/genindex.py
line diff
     1.1 --- a/it/web/genindex.py	Fri Aug 28 12:21:45 2009 +0200
     1.2 +++ b/it/web/genindex.py	Tue Sep 01 22:55:17 2009 +0200
     1.3 @@ -43,14 +43,14 @@
     1.4              else:
     1.5                  num = str(ch) + '. '
     1.6                  ch += 1
     1.7 -            if title.find('&') >= 0:
     1.8 +            if '&' in title:
     1.9                  title = title.replace('&', '\&')
    1.10              ab += 1
    1.11              date = os.popen('hg log -l1 --template "{date|isodate}" ' + c).read().split(None, 1)[0]
    1.12              args = {
    1.13                  'ab': "ab"[ab % 2],
    1.14                  'date': date,
    1.15 -                'chapid': chapid,
    1.16 +                # 'chapid': chapid,
    1.17                  'num': num,
    1.18                  'filename': filename,
    1.19                  'title': title,