Fix PEP8 issues.
Fix some pep8 issues in doc/ext/nova_todo.py make the code looks pretty. Change-Id: I026c873b487b507a758a2cdb70b444b64702b7fa
This commit is contained in:
parent
053a035790
commit
dcf906f6c2
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user