From 8b8b2600199c591e81be0e4d49c9979744a6ab55 Mon Sep 17 00:00:00 2001 From: Matthias Klose Date: Tue, 29 Jun 2010 10:59:31 +0000 Subject: [PATCH] Tools/unicode/mkstringprep.py: Don't use string exceptions, partial backport from r78982. --- Tools/unicode/mkstringprep.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tools/unicode/mkstringprep.py b/Tools/unicode/mkstringprep.py index 2525f9e5e6..b5cacb8d38 100644 --- a/Tools/unicode/mkstringprep.py +++ b/Tools/unicode/mkstringprep.py @@ -1,7 +1,7 @@ import re, unicodedata, sys if sys.maxunicode == 65535: - raise RuntimeError, "need UCS-4 Python" + raise RuntimeError("need UCS-4 Python") def gen_category(cats): for i in range(0, 0x110000): @@ -63,14 +63,14 @@ for l in data: if m: if m.group(1) == "Start": if curname: - raise "Double Start",(curname, l) + raise RuntimeError("Double Start", (curname, l)) curname = m.group(2) table = {} tables.append((curname, table)) continue else: if not curname: - raise "End without start", l + raise RuntimeError("End without start", l) curname = None continue if not curname: -- 2.50.1