summaryrefslogtreecommitdiff
path: root/pokemontools/pcm.py
diff options
context:
space:
mode:
Diffstat (limited to 'pokemontools/pcm.py')
-rwxr-xr-xpokemontools/pcm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pokemontools/pcm.py b/pokemontools/pcm.py
index 2e936d9..f4428c2 100755
--- a/pokemontools/pcm.py
+++ b/pokemontools/pcm.py
@@ -110,7 +110,7 @@ def get_wav_samples(filename):
fmt = 'h'
else:
# todo: support 3-byte sample width
- raise Exception, "Unsupported sample width: " + str(sample_width)
+ raise Exception("Unsupported sample width: " + str(sample_width))
value = struct.unpack(fmt, samples[i:i + sample_width])[0]
unpacked_samples.append(value)
@@ -148,7 +148,7 @@ def main():
}.get(args.mode, None)
if method == None:
- raise Exception, "Unknown conversion method!"
+ raise Exception("Unknown conversion method!")
method(args.filenames)