[LNT] r293982 - Remove old style exception
Chris Matthews via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 2 16:52:39 PST 2017
Author: cmatthews
Date: Thu Feb 2 18:52:39 2017
New Revision: 293982
URL: http://llvm.org/viewvc/llvm-project?rev=293982&view=rev
Log:
Remove old style exception
Modified:
lnt/trunk/lnt/server/db/testsuitedb.py
Modified: lnt/trunk/lnt/server/db/testsuitedb.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/db/testsuitedb.py?rev=293982&r1=293981&r2=293982&view=diff
==============================================================================
--- lnt/trunk/lnt/server/db/testsuitedb.py (original)
+++ lnt/trunk/lnt/server/db/testsuitedb.py Thu Feb 2 18:52:39 2017
@@ -66,6 +66,7 @@ class TestSuiteDB(object):
return setattr(self, field.name, value)
db_key_name = self.test_suite.db_key_name
+
class Machine(self.base, ParameterizedMixin):
__tablename__ = db_key_name + '_Machine'
@@ -184,8 +185,8 @@ class TestSuiteDB(object):
class_dict = locals()
for item in self.order_fields:
if item.name in class_dict:
- raise ValueError,"test suite defines reserved key %r" % (
- name,)
+ raise ValueError("test suite defines reserved key %r" % (
+ name,))
class_dict[item.name] = item.column = Column(
item.name, String(256))
More information about the llvm-commits
mailing list