-#!/usr/bin/env python
+#!/usr/bin/python2
+
+# Copyright (c) 2003 Intel Corporation
+# All rights reserved.
+#
+# Copyright (c) 2004-2006 The Trustees of Princeton University
+# All rights reserved.
+
"""
The point of this small utility is to take a file in the format
import os, sys
import string
+import StringIO
PCI_ANY = 0xffffffffL
except IOError:
sys.stderr.write( "Unable to open pcitable: %s\n" %
pcitable_path )
- return
+ pcitable_file=StringIO.StringIO()
# associative array to store all matches of module -> ['vendor:device',..]
# entries