]> xenbits.xensource.com Git - libvirt.git/commitdiff
esx: Refactor a repeated string in the generator
authorMatthias Bolte <matthias.bolte@googlemail.com>
Tue, 23 Aug 2011 21:15:21 +0000 (23:15 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Tue, 23 Aug 2011 21:15:21 +0000 (23:15 +0200)
src/esx/esx_vi_generator.py

index 239ec73ab8bcd8727a9000867575b295758c453e..8a128df9e123c7bf992b3c9e8ed53c277e98f30a 100755 (executable)
@@ -1817,17 +1817,19 @@ for obj in managed_objects_by_name.values():
 
 
 
-types_typedef.write("/* Generated by esx_vi_generator.py */\n\n\n\n")
-types_typeenum.write("/* Generated by esx_vi_generator.py */\n\n")
-types_typetostring.write("/* Generated by esx_vi_generator.py */\n\n")
-types_typefromstring.write("/* Generated by esx_vi_generator.py */\n\n")
-types_header.write("/* Generated by esx_vi_generator.py */\n\n\n\n")
-types_source.write("/* Generated by esx_vi_generator.py */\n\n\n\n")
-methods_header.write("/* Generated by esx_vi_generator.py */\n\n\n\n")
-methods_source.write("/* Generated by esx_vi_generator.py */\n\n\n\n")
-methods_macro.write("/* Generated by esx_vi_generator.py */\n\n\n\n")
-helpers_header.write("/* Generated by esx_vi_generator.py */\n\n\n\n")
-helpers_source.write("/* Generated by esx_vi_generator.py */\n\n\n\n")
+notice = "/* Generated by esx_vi_generator.py */\n\n\n\n"
+
+types_typedef.write(notice)
+types_typeenum.write(notice)
+types_typetostring.write(notice)
+types_typefromstring.write(notice)
+types_header.write(notice)
+types_source.write(notice)
+methods_header.write(notice)
+methods_source.write(notice)
+methods_macro.write(notice)
+helpers_header.write(notice)
+helpers_source.write(notice)