]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix PEP8 issues.
authorlrqrun <lrqrun@gmail.com>
Tue, 28 Aug 2012 15:28:48 +0000 (23:28 +0800)
committerlrqrun <lrqrun@gmail.com>
Tue, 28 Aug 2012 15:28:48 +0000 (23:28 +0800)
Fix some pep8 issues in doc/ext/cinder_todo.py make the code looks pretty.

Change-Id: I137c8bf5af30eb54a44cbff7f1fbc35bc2c3ed9e

doc/ext/cinder_todo.py

index 74331749dc74a56e0405685caf1c244c14481fbe..280ea926af35486a1bd894f5231446d2d0a9444c 100644 (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))