Ignore:
Timestamp:
05/01/12 10:58:30 (2 years ago)
Author:
wehart
Message:

Python 3.x portability fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pyutilib.pyro/trunk/pyutilib/pyro/util.py

    r2624 r2831  
    3232                ns=Pyro.naming.NameServerLocator().getNS(host) 
    3333            break 
    34         except NamingError, err: 
     34        except NamingError(err): 
    3535            pass 
    3636        time.sleep(1) 
    37         print "Failed to locate nameserver - trying again."         
     37        print("Failed to locate nameserver - trying again.") 
    3838 
    3939    if ns is None: 
    40         print "Could not locate nameserver after "+str(num_retries)+" attempts." 
     40        print("Could not locate nameserver after "+str(num_retries)+" attempts.") 
    4141        raise SystemExit 
    4242 
Note: See TracChangeset for help on using the changeset viewer.