- print '<tr><th>Método</th><th>Retorno</th><th>Descripción</th></tr>'
- for o in c['ops']:
- print '<tr><td>%s</td><td>%s</td><td>%s</td></tr>' \
- % (o['name'].encode('iso-8859-1', 'replace'),
- o['type'].encode('iso-8859-1', 'replace'),
- o['comment'].encode('iso-8859-1', 'replace'))
+ if metodos:
+ print '<tr><th>Método</th><th>Retorno</th><th>Descripción</th></tr>'
+ for o in c['ops']:
+ print '<tr><td>%s</td><td>%s</td><td>%s</td></tr>' \
+ % (o['name'].encode('iso-8859-1', 'replace'),
+ o['type'].encode('iso-8859-1', 'replace'),
+ o['comment'].encode('iso-8859-1', 'replace'))