From aad608e2c2c52c978eebae07019e4fa7602f0d89 Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Thu, 14 Apr 2011 13:17:24 +0400 Subject: [PATCH] line separators --- python/lib/Lib/pydoc.py | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/python/lib/Lib/pydoc.py b/python/lib/Lib/pydoc.py index 4b8bf617a402..dc7eb49b5890 100644 --- a/python/lib/Lib/pydoc.py +++ b/python/lib/Lib/pydoc.py @@ -34,6 +34,7 @@ to a different URL or to a local directory containing the Library Reference Manual pages. """ + __author__ = "Ka-Ping Yee " __date__ = "26 February 2001" @@ -1963,17 +1964,17 @@ pydoc by Ka-Ping Yee <ping@lfw.org>''' self.callback = callback self.base.__init__(self, self.address, self.handler) - def serve_until_quit(self): - import sys - if sys.platform.startswith('java'): - from select import cpython_compatible_select as select - else: - from select import select - self.quit = False - while not self.quit: - rd, wr, ex = select([self.socket], [], [], 1) - if rd: self.handle_request() - + def serve_until_quit(self): + import sys + if sys.platform.startswith('java'): + from select import cpython_compatible_select as select + else: + from select import select + self.quit = False + while not self.quit: + rd, wr, ex = select([self.socket], [], [], 1) + if rd: self.handle_request() + def server_activate(self): self.base.server_activate(self) if self.callback: self.callback(self) @@ -1984,7 +1985,7 @@ pydoc by Ka-Ping Yee <ping@lfw.org>''' try: try: DocServer(port, callback).serve_until_quit() - except (KeyboardInterrupt, select.error): + except (KeyboardInterrupt, select.error): pass finally: if completer: completer()