# HG changeset patch # User Paul Boddie # Date 1323384707 -3600 # Node ID 2c9de9fafab8696de72306f94d6dfbbbb06049ea # Parent 4f2eaf6a0ed3bd04f5f80e925a58e43d829d2c48 Changed the raise syntax to work with Shedskin. diff -r 4f2eaf6a0ed3 -r 2c9de9fafab8 ula.py --- a/ula.py Thu Dec 08 23:50:49 2011 +0100 +++ b/ula.py Thu Dec 08 23:51:47 2011 +0100 @@ -243,7 +243,7 @@ return (value >> 4 & 8 | value >> 3 & 4 | value >> 2 & 2 | value >> 1 & 1, value >> 3 & 8 | value >> 2 & 4 | value >> 1 & 2 | value & 1) else: - raise ValueError, "Only depths of 1, 2 and 4 are supported, not %d." % depth + raise ValueError("Only depths of 1, 2 and 4 are supported, not %d." % depth) # Convenience functions. @@ -266,7 +266,7 @@ for value in values: result = result << 1 | (value & 8) << 3 | (value & 4) << 2 | (value & 2) << 1 | (value & 1) else: - raise ValueError, "Only depths of 1, 2 and 4 are supported, not %d." % depth + raise ValueError("Only depths of 1, 2 and 4 are supported, not %d." % depth) return result