mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
gh-99325: Remove unused NameError handling (#99326)
This commit is contained in:
parent
e00d730efe
commit
faf7dfa656
2 changed files with 6 additions and 16 deletions
|
|
@ -25,16 +25,10 @@ def constructor(object):
|
|||
|
||||
# Example: provide pickling support for complex numbers.
|
||||
|
||||
try:
|
||||
complex
|
||||
except NameError:
|
||||
pass
|
||||
else:
|
||||
def pickle_complex(c):
|
||||
return complex, (c.real, c.imag)
|
||||
|
||||
def pickle_complex(c):
|
||||
return complex, (c.real, c.imag)
|
||||
|
||||
pickle(complex, pickle_complex, complex)
|
||||
pickle(complex, pickle_complex, complex)
|
||||
|
||||
def pickle_union(obj):
|
||||
import functools, operator
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue