<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 31, 2016 at 2:30 PM, Dylan Baker <span dir="ltr"><<a href="mailto:dylan@pnwbakers.com" target="_blank">dylan@pnwbakers.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This fixes gen_pack_header to work on python 2, where name[0] is unicode<br>
not str.<br>
<br>
Signed-off-by: Dylan Bake <<a href="mailto:dylanx.c.baker@intel.com">dylanx.c.baker@intel.com</a>><br>
---<br>
src/intel/genxml/gen_pack_header.py | 3 ++-<br>
1 file changed, 2 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/src/intel/genxml/gen_pack_header.py b/src/intel/genxml/gen_pack_header.py<br>
index 468bfea..5ef6744 100644<br>
--- a/src/intel/genxml/gen_pack_header.py<br>
+++ b/src/intel/genxml/gen_pack_header.py<br>
@@ -9,6 +9,7 @@ import re<br>
import sys<br>
import copy<br>
<br>
+<br></blockquote><div><br></div><div>extra newline.<br><br></div><div>Also, I think this should go before patch 5<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
license = """/*<br>
* Copyright (C) 2016 Intel Corporation<br>
*<br>
@@ -203,7 +204,7 @@ def to_alphanum(name):<br>
<br>
def safe_name(name):<br>
name = to_alphanum(name)<br>
- if not str.isalpha(name[0]):<br>
+ if not name[0].isalpha():<br>
name = '_' + name<br>
<br>
return name<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.8.3<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div></div>