gallium: Avoid using __doc__ in python scripts.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 28 Oct 2010 16:38:18 +0000 (17:38 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 28 Oct 2010 16:38:18 +0000 (17:38 +0100)
src/gallium/auxiliary/util/u_format_srgb.py
src/gallium/auxiliary/util/u_format_table.py
src/gallium/drivers/llvmpipe/lp_tile_soa.py

index 3e8000f3687bd2f5145659b7325a3634a6f9b2e2..cd63ae78919b34421415f9e5e4588656b3a8f6f4 100644 (file)
@@ -1,6 +1,6 @@
 #!/usr/bin/env python
 
-'''
+CopyRight = '''
 /**************************************************************************
  *
  * Copyright 2010 VMware, Inc.
@@ -89,7 +89,7 @@ def main():
     print '/* This file is autogenerated by u_format_srgb.py. Do not edit directly. */'
     print
     # This will print the copyright message on the top of this file
-    print __doc__.strip()
+    print CopyRight.strip()
     print
     print '#include "u_format_srgb.h"'
     print
index f0b407b8b8e3840664215e249fc66f5fe0040bd6..8cc22a56371a3a199cb1622f2280e9c473e62a59 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/env python
 
-'''
+CopyRight = '''
 /**************************************************************************
  *
  * Copyright 2010 VMware, Inc.
@@ -83,7 +83,7 @@ def write_format_table(formats):
     print '/* This file is autogenerated by u_format_table.py from u_format.csv. Do not edit directly. */'
     print
     # This will print the copyright message on the top of this file
-    print __doc__.strip()
+    print CopyRight.strip()
     print
     print '#include "u_format.h"'
     print '#include "u_format_s3tc.h"'
index e49f9c62fe7c777ac96fd18f1a892ab25834f88b..8df7b236fe003988125ce55fb4abb1a06a1c7c1e 100644 (file)
@@ -1,6 +1,6 @@
 #!/usr/bin/env python
 
-'''
+CopyRight = '''
 /**************************************************************************
  *
  * Copyright 2009 VMware, Inc.
@@ -510,7 +510,7 @@ def main():
     print '/* This file is autogenerated by lp_tile_soa.py from u_format.csv. Do not edit directly. */'
     print
     # This will print the copyright message on the top of this file
-    print __doc__.strip()
+    print CopyRight.strip()
     print
     print '#include "pipe/p_compiler.h"'
     print '#include "util/u_format.h"'