Fix PEP8 issues.

Fix some pep8 issues in doc/ext/cinder_todo.py make the code looks pretty.

Change-Id: I137c8bf5af30eb54a44cbff7f1fbc35bc2c3ed9e
This commit is contained in:
lrqrun 2012-08-28 23:28:48 +08:00
parent 4533e5b450
commit 3ed4d0b628
1 changed files with 4 additions and 2 deletions

View File

@ -73,8 +73,10 @@ def process_todo_nodes(app, doctree, fromdocname):
priority = 5
if m:
priority = int(m.group(1))
if (priority < 0): priority = 1
if (priority > 5): priority = 5
if priority < 0:
priority = 1
if priority > 5:
priority = 5
item['classes'].append('todo_p' + str(priority))
todo_entry['classes'].append('todo_p' + str(priority))