[libvirt] [PATCH] esx: Refactor a repeated string in the generator

2011-08-23 Thread Matthias Bolte
---
 src/esx/esx_vi_generator.py |   24 +---
 1 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/src/esx/esx_vi_generator.py b/src/esx/esx_vi_generator.py
index 239ec73..8a128df 100755
--- a/src/esx/esx_vi_generator.py
+++ b/src/esx/esx_vi_generator.py
@@ -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)
 
 
 
-- 
1.7.4.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [libvirt] [PATCH] esx: Refactor a repeated string in the generator

2011-08-23 Thread Eric Blake

On 08/23/2011 03:18 PM, Matthias Bolte wrote:

---
  src/esx/esx_vi_generator.py |   24 +---
  1 files changed, 13 insertions(+), 11 deletions(-)


ACK.

--
Eric Blake   ebl...@redhat.com+1-801-349-2682
Libvirt virtualization library http://libvirt.org

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [libvirt] [PATCH] esx: Refactor a repeated string in the generator

2011-08-23 Thread Matthias Bolte
2011/8/23 Eric Blake ebl...@redhat.com:
 On 08/23/2011 03:18 PM, Matthias Bolte wrote:

 ---
  src/esx/esx_vi_generator.py |   24 +---
  1 files changed, 13 insertions(+), 11 deletions(-)

 ACK.

Thanks, pushed.

-- 
Matthias Bolte
http://photron.blogspot.com

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list