Read about our upcoming Code of Conduct on this issue

Commit 62fec90c authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

compat: don't rely on cpython-specific builtins manipulation

Pierre Augier signaled on the mailing list that this fails on Pypy and pointed
out the correct solution.

Differential Revision:
parent 9ebc10ad4a04
Pipeline #28602 failed with stages
in 95 minutes and 53 seconds
......@@ -44,6 +44,7 @@ if not ispy3:
FileNotFoundError = OSError
import builtins
import concurrent.futures as futures
import http.cookiejar as cookielib
import http.client as httplib
......@@ -55,7 +56,7 @@ else:
def future_set_exception_info(f, exc_info):
FileNotFoundError = __builtins__['FileNotFoundError']
FileNotFoundError = builtins.FileNotFoundError
def identity(a):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment