1.1 --- a/ula.py Thu Dec 08 23:50:49 2011 +0100
1.2 +++ b/ula.py Thu Dec 08 23:51:47 2011 +0100
1.3 @@ -243,7 +243,7 @@
1.4 return (value >> 4 & 8 | value >> 3 & 4 | value >> 2 & 2 | value >> 1 & 1,
1.5 value >> 3 & 8 | value >> 2 & 4 | value >> 1 & 2 | value & 1)
1.6 else:
1.7 - raise ValueError, "Only depths of 1, 2 and 4 are supported, not %d." % depth
1.8 + raise ValueError("Only depths of 1, 2 and 4 are supported, not %d." % depth)
1.9
1.10 # Convenience functions.
1.11
1.12 @@ -266,7 +266,7 @@
1.13 for value in values:
1.14 result = result << 1 | (value & 8) << 3 | (value & 4) << 2 | (value & 2) << 1 | (value & 1)
1.15 else:
1.16 - raise ValueError, "Only depths of 1, 2 and 4 are supported, not %d." % depth
1.17 + raise ValueError("Only depths of 1, 2 and 4 are supported, not %d." % depth)
1.18
1.19 return result
1.20