egl: fix python lib deprecation warning
[mesa.git] / src / egl / generate / gen_egl_dispatch.py
index eeb3f3f9a5a2051b958598c1c699455075b424df..d556a7782c9438f416213ca5e99b5f66eda8c2fe 100644 (file)
@@ -34,7 +34,7 @@ additional information defined in the module eglFunctionList.
 
 import argparse
 import collections
-import imp
+import eglFunctionList
 import sys
 import textwrap
 
@@ -44,15 +44,10 @@ def main():
     parser = argparse.ArgumentParser()
     parser.add_argument("target", choices=("header", "source"),
             help="Whether to build the source or header file.")
-    parser.add_argument("func_list_file", help="The function list .py file.")
     parser.add_argument("xml_files", nargs="+", help="The XML files with the EGL function lists.")
 
     args = parser.parse_args()
 
-    # The function list is a Python module, but it's specified on the command
-    # line.
-    eglFunctionList = imp.load_source("eglFunctionList", args.func_list_file)
-
     xmlFunctions = genCommon.getFunctions(args.xml_files)
     xmlByName = dict((f.name, f) for f in xmlFunctions)
     functions = []