Changeset 4529


Ignore:
Timestamp:
04/12/08 09:45:02 (11 years ago)
Author:
cbyrom
Message:

Improve reading in of password file data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • exist/trunk/python/ndgUtils/eXistInterface.py

    r4483 r4529  
    1818        pw={} 
    1919        for line in f.readlines(): 
    20             host,userid,password=line.strip().split(' ') 
     20            line = line.strip() 
     21            if not line: 
     22                continue 
     23            host,userid,password=line.split(' ') 
    2124            pw[host]=(userid,password) 
    2225        f.close() 
Note: See TracChangeset for help on using the changeset viewer.