From e24ab4501d9d45fed2108cd427924825bfce36a9 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Thu, 6 Jun 2013 05:49:25 +0000 Subject: [PATCH] Fix bug with Python 3.3 (?) --- src/utils/gen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/gen.py b/src/utils/gen.py index 4a4c92f00..9eaa15499 100644 --- a/src/utils/gen.py +++ b/src/utils/gen.py @@ -52,8 +52,8 @@ def abbrev(strings, d=None): for i in xrange(1, len(s)+1): yield s[:i] if len(strings) != len(set(strings)): - raise ValueError, \ - 'strings given to utils.abbrev have duplicates: %r' % strings + raise ValueError( + 'strings given to utils.abbrev have duplicates: %r' % strings) if d is None: d = {} for s in strings: