mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Raise statement normalization in Lib/.
This commit is contained in:
parent
8b3febef2f
commit
ce36ad8a46
80 changed files with 502 additions and 530 deletions
|
@ -240,7 +240,7 @@ class Symbol:
|
|||
Raises ValueError if the name is bound to multiple namespaces.
|
||||
"""
|
||||
if len(self.__namespaces) != 1:
|
||||
raise ValueError, "name is bound to multiple namespaces"
|
||||
raise ValueError("name is bound to multiple namespaces")
|
||||
return self.__namespaces[0]
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue