summaryrefslogtreecommitdiffstats
path: root/examples/pytde-sampler/lib.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pytde-sampler/lib.py')
-rw-r--r--examples/pytde-sampler/lib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/pytde-sampler/lib.py b/examples/pytde-sampler/lib.py
index 875ae1a..d81f2c3 100644
--- a/examples/pytde-sampler/lib.py
+++ b/examples/pytde-sampler/lib.py
@@ -68,8 +68,8 @@ def listmodules():
path = path.replace(samplerpath, '').replace(os.path.sep, '.')
try:
module = namedimport(path)
- except (ValueError, ImportError, ), exc:
- print 'Exception %s importing %s' % (exc, path, )
+ except (ValueError, ImportError, ) as exc:
+ print(('Exception %s importing %s' % (exc, path, )))
else:
modules.append((path, module))
modules.sort()