diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-01-03 15:29:41 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-01-07 22:14:56 +0900 |
| commit | 4ce11cc30df1805459a615960fdec204a975548a (patch) | |
| tree | 084f1e1fa404bdf0d082b1a58acf392b5d177326 /examples/pytde-sampler/lib.py | |
| parent | 065f41b4908b11278d4334e8c85150ec0fd4a9f6 (diff) | |
| download | pytde-4ce11cc3.tar.gz pytde-4ce11cc3.zip | |
Drop python2 support.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'examples/pytde-sampler/lib.py')
| -rw-r--r-- | examples/pytde-sampler/lib.py | 4 |
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() |
