#\r
# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
#\r
-# This program and the accompanying materials are licensed and made available\r
-# under the terms and conditions of the BSD License which accompanies this\r
-# distribution. The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
-import plugins.EdkPlugins.basemodel.doxygen as doxygen\r
+from plugins.EdkPlugins.basemodel import doxygen\r
import os\r
try:\r
import wx\r
except:\r
gInGui = False\r
import re\r
-import plugins.EdkPlugins.edk2.model.inf as inf\r
-import plugins.EdkPlugins.edk2.model.dec as dec\r
+from plugins.EdkPlugins.edk2.model import inf\r
+from plugins.EdkPlugins.edk2.model import dec\r
from plugins.EdkPlugins.basemodel.message import *\r
\r
_ignore_dir = ['.svn', '_svn', 'cvs']\r
configFile.AddFile(path)\r
return\r
no = 0\r
- for no in xrange(len(lines)):\r
+ for no in range(len(lines)):\r
if len(lines[no].strip()) == 0:\r
continue\r
if lines[no].strip()[:2] in ['##', '//', '/*', '*/']:\r
#file = textfile.TextFile(path)\r
\r
try:\r
- file = open(path, 'rb')\r
+ file = open(path, 'r')\r
except (IOError, OSError) as msg:\r
return None\r
\r