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

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

Issue 739393004: Revert "Revert "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
« no previous file with comments | « third_party/logilab/common/configuration.py ('k') | third_party/logilab/common/daemon.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/logilab/common/corbautils.py
===================================================================
--- third_party/logilab/common/corbautils.py (revision 293047)
+++ third_party/logilab/common/corbautils.py (working copy)
@@ -72,7 +72,7 @@
name = [CosNaming.NameComponent(id, kind)]
try:
context = context.bind_new_context(name)
- except CosNaming.NamingContext.AlreadyBound, ex:
+ except CosNaming.NamingContext.AlreadyBound as ex:
context = context.resolve(name)._narrow(CosNaming.NamingContext)
assert context is not None, \
'test context exists but is not a NamingContext'
@@ -81,7 +81,7 @@
name = [CosNaming.NameComponent(id, kind)]
try:
context.bind(name, object._this())
- except CosNaming.NamingContext.AlreadyBound, ex:
+ except CosNaming.NamingContext.AlreadyBound as ex:
context.rebind(name, object._this())
def activate_POA():
« no previous file with comments | « third_party/logilab/common/configuration.py ('k') | third_party/logilab/common/daemon.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698