Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

func_w0623_py30.py 283B

12345678910111213141516
  1. """Test for W0623, overwriting names in exception handlers."""
  2. __revision__ = ''
  3. class MyError(Exception):
  4. """Special exception class."""
  5. pass
  6. def some_function():
  7. """A function."""
  8. try:
  9. {}["a"]
  10. except KeyError as some_function: # W0623
  11. pass