* Remove use of deprecated functions from the string module
[mirror/userdir-ldap.git] / ud-sshlist
index 279dc98..61f5f15 100755 (executable)
 #
 # It also understand .qmail type files
 
 #
 # It also understand .qmail type files
 
-import string, re, time, getopt, os, sys, pwd, stat;
+import re, time, getopt, os, sys, pwd, stat;
 
 SSHAuthSplit = re.compile('^(.* )?(\d+) (\d+) (\d+) ?(.+)$');
 
 while (1):
 
 SSHAuthSplit = re.compile('^(.* )?(\d+) (\d+) (\d+) ?(.+)$');
 
 while (1):
-   File = string.strip(sys.stdin.readline());
+   File = sys.stdin.readline().strip()
    if File == "":
       break;
 
    if File == "":
       break;
 
@@ -32,7 +32,7 @@ while (1):
    Forward = open(File,"r");
    Lines = [];
    while (1):
    Forward = open(File,"r");
    Lines = [];
    while (1):
-      Line = string.strip(Forward.readline());
+      Line = Forward.readline().strip()
       if Line == "":
          break;
       if Line[0] == '#' or Line[0] == '\n':
       if Line == "":
          break;
       if Line[0] == '#' or Line[0] == '\n':