summaryrefslogtreecommitdiffstats
path: root/src/glsl/builtins/tools
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2011-01-14 14:17:03 -0800
committerVinson Lee <[email protected]>2011-01-14 14:17:03 -0800
commit0de6d7e99195b6e739e3a80482ad7860c14bef3b (patch)
tree9c73a429abf9e30675bae69d3b5d4be72dfebbb3 /src/glsl/builtins/tools
parenta6e4614ca1284c5731876bb88732b326bf13aba0 (diff)
generate_builtins.py: Fix builds using Python 2.5.
Diffstat (limited to 'src/glsl/builtins/tools')
-rwxr-xr-xsrc/glsl/builtins/tools/generate_builtins.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/builtins/tools/generate_builtins.py b/src/glsl/builtins/tools/generate_builtins.py
index 1cf12a148c6..fac3821dd56 100755
--- a/src/glsl/builtins/tools/generate_builtins.py
+++ b/src/glsl/builtins/tools/generate_builtins.py
@@ -1,6 +1,8 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
+from __future__ import with_statement
+
import re
import sys
from glob import glob