| Index: third_party/logilab/common/pyro_ext.py
 | 
| ===================================================================
 | 
| --- third_party/logilab/common/pyro_ext.py	(revision 292986)
 | 
| +++ third_party/logilab/common/pyro_ext.py	(working copy)
 | 
| @@ -118,7 +118,7 @@
 | 
|      nsgroup, nsid = ns_group_and_id(nsid, defaultnsgroup)
 | 
|      try:
 | 
|          nsd = locate_ns(nshost)
 | 
| -    except errors.PyroError, ex:
 | 
| +    except errors.PyroError as ex:
 | 
|          # name server not responding
 | 
|          _LOGGER.error('can\'t locate pyro name server: %s', ex)
 | 
|      else:
 | 
| @@ -159,7 +159,7 @@
 | 
|      try:
 | 
|          nsd = locate_ns(nshost)
 | 
|          pyrouri = nsd.resolve('%s.%s' % (nsgroup, nsid))
 | 
| -    except errors.ProtocolError, ex:
 | 
| +    except errors.ProtocolError as ex:
 | 
|          raise errors.PyroError(
 | 
|              'Could not connect to the Pyro name server (host: %s)' % nshost)
 | 
|      except errors.NamingError:
 | 
| 
 |