From: lrqrun Date: Tue, 28 Aug 2012 15:28:48 +0000 (+0800) Subject: Fix PEP8 issues. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=3ed4d0b62838d53fedea5280523fdaaec76381bb;p=openstack-build%2Fcinder-build.git Fix PEP8 issues. Fix some pep8 issues in doc/ext/cinder_todo.py make the code looks pretty. Change-Id: I137c8bf5af30eb54a44cbff7f1fbc35bc2c3ed9e --- 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))