diff options
author | Mathieu Bridon <[email protected]> | 2018-07-06 12:13:36 +0200 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2018-07-06 10:18:43 -0700 |
commit | b39bdb07164211c483a3c8a8625689169be09cc4 (patch) | |
tree | 64f84b5851c3346213ea573c79f10ca37edceb75 /src/mesa/main/get_hash_generator.py | |
parent | e5a8d51e541376077d3ca72f00eacadab6ac0501 (diff) |
python: Stop using the Python 2 exception syntax
We could have made this compatible with Python 3 by using:
except Exception as e:
But since none of this code actually uses the exception objects, let's
just drop them entirely.
Signed-off-by: Mathieu Bridon <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Reviewed-by: Dylan Baker <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/get_hash_generator.py')
-rw-r--r-- | src/mesa/main/get_hash_generator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/get_hash_generator.py b/src/mesa/main/get_hash_generator.py index 86c6771066a..facdccd8a53 100644 --- a/src/mesa/main/get_hash_generator.py +++ b/src/mesa/main/get_hash_generator.py @@ -201,7 +201,7 @@ def show_usage(): if __name__ == '__main__': try: (opts, args) = getopt.getopt(sys.argv[1:], "f:") - except Exception,e: + except Exception: show_usage() if len(args) != 0: |