summaryrefslogtreecommitdiffstats
path: root/src/mapi/glapi
diff options
context:
space:
mode:
authorDylan Baker <dylanx.c.baker@intel.com>2014-11-20 14:01:40 -0800
committerMatt Turner <mattst88@gmail.com>2015-05-22 11:31:27 -0700
commitbdae3bc1ffb14b705a0c6fef3e90380dfd0eed97 (patch)
treedadb382a40c9694f9952bd3c1065d2c8d9b05119 /src/mapi/glapi
parentcf718cc964f86dc49c1fc9ed5e39aa5bd87ad931 (diff)
downloadexternal_mesa3d-bdae3bc1ffb14b705a0c6fef3e90380dfd0eed97.zip
external_mesa3d-bdae3bc1ffb14b705a0c6fef3e90380dfd0eed97.tar.gz
external_mesa3d-bdae3bc1ffb14b705a0c6fef3e90380dfd0eed97.tar.bz2
glapi: remap_helper.py: Fix some low hanging style issues
This makes the tools shut up about a bunch of problems, making them more useful for catching actual problems. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Acked-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/mapi/glapi')
-rw-r--r--src/mapi/glapi/gen/remap_helper.py17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/mapi/glapi/gen/remap_helper.py b/src/mapi/glapi/gen/remap_helper.py
index e1a13d0..d34e1b5 100644
--- a/src/mapi/glapi/gen/remap_helper.py
+++ b/src/mapi/glapi/gen/remap_helper.py
@@ -24,9 +24,12 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
-import gl_XML
+import sys
+import getopt
+
import license
-import sys, getopt, string
+import gl_XML
+
def get_function_spec(func):
sig = ""
@@ -54,6 +57,7 @@ def get_function_spec(func):
return spec
+
class PrintGlRemap(gl_XML.gl_print_base):
def __init__(self):
gl_XML.gl_print_base.__init__(self)
@@ -168,12 +172,13 @@ def show_usage():
print " -c ver Version can be 'es1' or 'es2'."
sys.exit(1)
-if __name__ == '__main__':
+
+def main():
file_name = "gl_API.xml"
try:
(args, trail) = getopt.getopt(sys.argv[1:], "f:c:")
- except Exception,e:
+ except Exception:
show_usage()
es = None
@@ -190,3 +195,7 @@ if __name__ == '__main__':
printer = PrintGlRemap()
printer.Print( api )
+
+
+if __name__ == '__main__':
+ main()