]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Lib/pydoc.py
AppPkg/.../Python-2.7.10: AppPkg.dsc, pyconfig.h, PyMod-2.7.10
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.10 / PyMod-2.7.10 / Lib / pydoc.py
index 06fa7dd89360d20945a5c5bc38d68d960fad493e..c5866f9621243902a59b90bff759af52dadbef9d 100644 (file)
@@ -1,5 +1,18 @@
 #!/usr/bin/env python\r
 # -*- coding: latin-1 -*-\r
+\r
+# Module 'pydoc' -- Generate Python documentation in HTML or text for interactive use.\r
+#\r
+# Copyright (c) 2015, Daryl McDaniel. All rights reserved.<BR>\r
+# Copyright (c) 2011 - 2012, Intel Corporation. All rights reserved.<BR>\r
+# This program and the accompanying materials are licensed and made available under\r
+# the terms and conditions of the BSD License that accompanies this distribution.\r
+# The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.\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
+\r
 """Generate Python documentation in HTML or text for interactive use.\r
 \r
 In the Python interpreter, do "from pydoc import help" to provide online\r
@@ -1385,12 +1398,16 @@ def getpager():
     if 'PAGER' in os.environ:\r
         if sys.platform == 'win32': # pipes completely broken in Windows\r
             return lambda text: tempfilepager(plain(text), os.environ['PAGER'])\r
+        elif sys.platform == 'uefi':\r
+            return lambda text: tempfilepager(plain(text), os.environ['PAGER'])\r
         elif os.environ.get('TERM') in ('dumb', 'emacs'):\r
             return lambda text: pipepager(plain(text), os.environ['PAGER'])\r
         else:\r
             return lambda text: pipepager(text, os.environ['PAGER'])\r
     if os.environ.get('TERM') in ('dumb', 'emacs'):\r
         return plainpager\r
+    if sys.platform == 'uefi':\r
+        return plainpager\r
     if sys.platform == 'win32' or sys.platform.startswith('os2'):\r
         return lambda text: tempfilepager(plain(text), 'more <')\r
     if hasattr(os, 'system') and os.system('(less) 2>/dev/null') == 0:\r