Author: iwontbecreative
Date: Sat Mar  5 18:06:33 2011
New Revision: 48764

URL: http://svn.gna.org/viewcvs/wesnoth?rev=48764&view=rev
Log:
Remove one uneeded include and minor changes.

Modified:
    trunk/data/tools/about_cfg_to_wiki

Modified: trunk/data/tools/about_cfg_to_wiki
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/about_cfg_to_wiki?rev=48764&r1=48763&r2=48764&view=diff
==============================================================================
--- trunk/data/tools/about_cfg_to_wiki (original)
+++ trunk/data/tools/about_cfg_to_wiki Sat Mar  5 18:06:33 2011
@@ -25,10 +25,12 @@
     sys.stdout.write(text.encode("utf8"))
 
 if __name__ == "__main__":
-    import optparse, subprocess
-    try: import psyco
-    except ImportError: pass
-    else: psyco.full()
+    import optparse
+    try:
+        import psyco
+        psyco.full()
+    except ImportError:
+        pass
 
     optionparser = optparse.OptionParser()
     options, args = optionparser.parse_args()
@@ -61,7 +63,8 @@
                 # Interpret our local conventions for obfuscsting in SVN files
                 email = email.replace("_AT_", "@").replace("_DOT_", 
".")
                 section.lines.append((name, comment, wikiuser, email))
-            if section.title: sections.append(section)
+            if section.title:
+                sections.append(section)
         chapters.append((arg, sections))
 
     # Output.
@@ -94,7 +97,8 @@
                 if name == "*":
                     output("<hr>\n")
                     continue
-                if comment: comment = " - " + comment
+                if comment:
+                    comment = " - " + comment
                 if wikiuser:
                     # If a wiki user is given, the nickname is turned into a
                     # wiki link, or else the whole name.


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to