[Checkins] SVN: manuel/trunk/src/manuel/sphinx.py option could be undefined in certain code paths.

Lennart Regebro regebro at gmail.com
Sun Jan 3 14:51:17 EST 2010


Log message for revision 107600:
  option could be undefined in certain code paths.
  

Changed:
  U   manuel/trunk/src/manuel/sphinx.py

-=-
Modified: manuel/trunk/src/manuel/sphinx.py
===================================================================
--- manuel/trunk/src/manuel/sphinx.py	2010-01-03 19:31:26 UTC (rev 107599)
+++ manuel/trunk/src/manuel/sphinx.py	2010-01-03 19:51:17 UTC (rev 107600)
@@ -57,15 +57,14 @@
         source = textwrap.dedent(source).strip()
         document.claim_region(region)
         type_, extras = region.start_match.groups()
+        group = ''
+        options = None
         if extras:
             group = extras.splitlines()[0].strip()
             for option in extras.splitlines()[1:]:
                 if ':options:' in option:
                     options = option.split(':options:')[1].strip()
                     break
-        else:
-            group = ''
-            options = None
         if type_ == 'setup':
             region.parsed = TestSetup(source, group, options)
         elif type_ == 'code':



More information about the checkins mailing list