From: Eric S. Raymond Date: Fri, 22 Nov 2002 11:30:01 +0000 (+0000) Subject: Remove comments. X-Git-Tag: 1-1~14 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=9313b880c78f4e0dc292ebc6354f0c3e9fec095d;p=ssh-installkeys.git Remove comments. --- diff --git a/ssh-installkeys b/ssh-installkeys index ba19567..52de85f 100755 --- a/ssh-installkeys +++ b/ssh-installkeys @@ -46,8 +46,8 @@ License: Python Software Foundation License Noah Spurrier -$Revision: 1.1 $ -$Date: 2002/11/22 11:26:34 $ +$Revision: 1.2 $ +$Date: 2002/11/22 11:27:39 $ """ import os, sys import select @@ -68,7 +68,7 @@ A critical module was not found. Probably this OS does not support it. Currently pexpect is intended for UNIX operating systems (including OS-X).""" __version__ = '0.94' -__revision__ = '$Revision: 1.1 $' +__revision__ = '$Revision: 1.2 $' __all__ = ['ExceptionPexpect', 'EOF', 'TIMEOUT', 'spawn', '__version__', '__revision__'] @@ -390,26 +390,6 @@ class spawn: self.match = None raise -# def expect_eof(self, timeout = None): -# """This reads from the child until the end of file is found. -# A timeout exception may be thrown. -# """ -# if timeout is None: -# timeout = self.timeout -# -# incoming = '' -# self.match = self.matched = None -# try: -# while 1: -# c = self.read(1, timeout) -# incoming = incoming + c -# except EOF: -# self.before = incoming -# return 0 -# except: # save incoming data (usefull for debugging) -# self.before = incoming -# raise - def read(self, n, timeout = None): """This reads up to n characters from the child application. It includes a timeout. If the read does not complete within the @@ -603,20 +583,6 @@ class spawn: break -## def send_human(self, text, delay_min = 0, delay_max = 1): -## pass -## def spawn2(self, command, args): -## """return pid, fd_stdio, fd_stderr -## """ -## pass -## def expect_ex(self, string_match, local_timeout = None): -## """This is like expect(), except that instead of regular expression patterns -## it matches on exact strings. -## """ -## pass -## # Return (data_read) - - def which (filename): """This takes a given filename and tries to find it in the environment path and check if it is executable.