Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diff to fix the ValueError issue #15

Closed
ghost opened this issue Oct 30, 2013 · 1 comment
Closed

Diff to fix the ValueError issue #15

ghost opened this issue Oct 30, 2013 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 30, 2013

diff --git a/langid/langid.py b/langid/langid.py
index 3c39275..36a9159 100644
--- a/langid/langid.py
+++ b/langid/langid.py
@@ -226,7 +226,7 @@
       # to speed up processing.
       for lang in langs:
         if lang not in nb_classes:
-          raise ValueError, "Unknown language code %s" % lang
+          raise ValueError("Unknown language code %s" % lang)
 
       subset_mask = np.fromiter((l in langs for l in nb_classes), dtype=bool)
       self.nb_classes = [ c for c in nb_classes if c in langs ]
saffsd added a commit that referenced this issue Nov 1, 2013
@saffsd
Copy link
Owner

saffsd commented Nov 1, 2013

Thanks, and thanks also to Jos de Bruin for originally reporting the issue via email.

@saffsd saffsd closed this as completed Nov 1, 2013
saffsd added a commit that referenced this issue Nov 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant