#\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
\r
from __future__ import print_function\r
+from __future__ import absolute_import\r
import os\r
\r
-from message import *\r
+from .message import *\r
\r
class BaseDoxygeItem:\r
def __init__(self, name, tag=''):\r
\r
def AddSection(self, section):\r
self.mSections.append(section)\r
- self.mSections.sort(cmp=lambda x, y: cmp(x.mName.lower(), y.mName.lower()))\r
+ self.mSections.sort(key=lambda x: x.mName.lower())\r
\r
def Generate(self):\r
if self.mIsMainPage:\r
self.mText.append(self.mDescription)\r
endIndex = len(self.mText)\r
\r
- self.mSections.sort()\r
+ self.mSections.sort(key=lambda x: x.mName.lower())\r
for sect in self.mSections:\r
self.mText += sect.Generate()\r
\r
self.mText.insert(endIndex, '<ul>')\r
endIndex += 1\r
if self.mIsSort:\r
- self.mSubPages.sort(cmp=lambda x, y: cmp(x.mName.lower(), y.mName.lower()))\r
+ self.mSubPages.sort(key=lambda x: x.mName.lower())\r
for page in self.mSubPages:\r
self.mText.insert(endIndex, '<li>\subpage %s \"%s\" </li>' % (page.mTag, page.mName))\r
endIndex += 1\r