Commit 67f83c6
maths/greatest_common_divisor: fix Python 3 except syntax
`except IndexError, UnboundLocalError, ValueError:` is Python 2
syntax and raises SyntaxError under Python 3. The module currently
fails to import at all, and downstream modules that depend on it
(maths.least_common_multiple, maths.primelib) also fail with
ImportError.
Restore the parenthesised tuple form `except (IndexError,
UnboundLocalError, ValueError):`, which was the correct form before
a recent pre-commit autoupdate stripped the parentheses.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c0db072 commit 67f83c6
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
0 commit comments