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:
parent
4533e5b450
commit
3ed4d0b628
@ -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