diff options
Diffstat (limited to 'Lib/msilib/__init__.py')
-rw-r--r-- | Lib/msilib/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/msilib/__init__.py b/Lib/msilib/__init__.py index e2ea8145fdc..9595413b62b 100644 --- a/Lib/msilib/__init__.py +++ b/Lib/msilib/__init__.py @@ -89,7 +89,7 @@ def change_sequence(seq, action, seqno=_Unspecified, cond = _Unspecified): seqno = seq[i][2] seq[i] = (action, cond, seqno) return - raise ValueError, "Action not found in sequence" + raise ValueError("Action not found in sequence") def add_data(db, table, values): v = db.OpenView("SELECT * FROM `%s`" % table) @@ -108,7 +108,7 @@ def add_data(db, table, values): elif isinstance(field, Binary): r.SetStream(i+1, field.name) else: - raise TypeError, "Unsupported type %s" % field.__class__.__name__ + raise TypeError("Unsupported type %s" % field.__class__.__name__) try: v.Modify(MSIMODIFY_INSERT, r) except Exception as e: |