Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Unified Diff: third_party/logilab/common/pyro_ext.py

Issue 707353002: pylint: upgrade to 1.3.1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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:

Powered by Google App Engine
This is Rietveld 408576698