#!/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
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