[LNT] r310878 - Update to newer exception type
Chris Matthews via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 14 13:24:20 PDT 2017
Author: cmatthews
Date: Mon Aug 14 13:24:20 2017
New Revision: 310878
URL: http://llvm.org/viewvc/llvm-project?rev=310878&view=rev
Log:
Update to newer exception type
This old code was using a deprecated exception syntax.
Modified:
lnt/trunk/lnt/server/db/migrations/upgrade_0_to_1.py
Modified: lnt/trunk/lnt/server/db/migrations/upgrade_0_to_1.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/db/migrations/upgrade_0_to_1.py?rev=310878&r1=310877&r2=310878&view=diff
==============================================================================
--- lnt/trunk/lnt/server/db/migrations/upgrade_0_to_1.py (original)
+++ lnt/trunk/lnt/server/db/migrations/upgrade_0_to_1.py Mon Aug 14 13:24:20 2017
@@ -221,8 +221,8 @@ def get_base_for_testsuite(test_suite):
class_dict = locals()
for item in test_suite.order_fields:
if item.name in class_dict:
- raise ValueError,"test suite defines reserved key %r" % (
- item.name,)
+ raise ValueError("test suite defines reserved key %r" % (
+ item.name,))
class_dict[item.name] = item.column = Column(
item.name, String(256))
@@ -248,8 +248,8 @@ def get_base_for_testsuite(test_suite):
class_dict = locals()
for item in test_suite.run_fields:
if item.name in class_dict:
- raise ValueError,"test suite defines reserved key %r" % (
- item.name,)
+ raise ValueError("test suite defines reserved key %r" % (
+ item.name))
class_dict[item.name] = item.column = Column(
item.name, String(256))
More information about the llvm-commits
mailing list