Stricter PEP-8 conformance.
[python-bulletml.git] / bulletml-to-bulletyaml
index ebe0e75..89f861b 100755 (executable)
@@ -6,9 +6,12 @@ import yaml
 from bulletml import BulletML, bulletyaml
 
 def main(argv):
+    if not argv:
+        raise SystemExit("Usage: %s filename ..." % sys.argv[0])
+
     for filename in argv:
         print "# Loading", filename
-        print yaml.dump(yaml.load(yaml.dump(BulletML.FromDocument(open(filename, "rU")))))
+        print yaml.dump(BulletML.FromDocument(open(filename, "rU")))
 
 if __name__ == "__main__":
     main(sys.argv[1:])