From 3ed4d0b62838d53fedea5280523fdaaec76381bb Mon Sep 17 00:00:00 2001 From: lrqrun Date: Tue, 28 Aug 2012 23:28:48 +0800 Subject: [PATCH] Fix PEP8 issues. Fix some pep8 issues in doc/ext/cinder_todo.py make the code looks pretty. Change-Id: I137c8bf5af30eb54a44cbff7f1fbc35bc2c3ed9e --- doc/ext/cinder_todo.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/ext/cinder_todo.py b/doc/ext/cinder_todo.py index 74331749d..280ea926a 100644 --- a/doc/ext/cinder_todo.py +++ b/doc/ext/cinder_todo.py @@ -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)) -- 2.45.2