X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=blobdiff_plain;f=ud-sshlist;h=61f5f15c3f2fa4cf8c86397fae7845df3513d5b0;hp=279dc98f9b9563014ab00c69d8d9156f97174ff3;hb=a6fb69805c3999a85c064a96c93417bb1c284c5c;hpb=3ec1386cd62200a1d86fc72168c2aa1fe305bdd8 diff --git a/ud-sshlist b/ud-sshlist index 279dc98..61f5f15 100755 --- a/ud-sshlist +++ b/ud-sshlist @@ -12,12 +12,12 @@ # # 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): - File = string.strip(sys.stdin.readline()); + File = sys.stdin.readline().strip() if File == "": break; @@ -32,7 +32,7 @@ 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':