Ignore:
Timestamp:
03/28/12 20:31:22 (2 years ago)
Author:
Lan Zagar <lan.zagar@…>
Branch:
default
Message:

Replaced split('\n') with splitlines().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • install-scripts/orngServer/orngServerFilesServer.py

    r6538 r10674  
    2121    s = open(userfilename, 'rt').read() 
    2222    umap = {} 
    23     for line in s.split('\n'): 
     23    for line in s.splitlines(): 
    2424        try: 
    2525            uname, passw = line.split(',') 
     
    6363        f.close() 
    6464        #print "CONT", cont 
    65         name, protection, datetime, title, tags = cont.split("\n") 
     65        name, protection, datetime, title, tags = cont.splitlines() 
    6666        tags = tags.split(";") 
    6767        self.set(name, protection, datetime, title, tags) 
Note: See TracChangeset for help on using the changeset viewer.