Skip to content

Commit

Permalink
Patch out urllib emscripten shim
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane committed Mar 20, 2024
1 parent cfb8443 commit f1c7495
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/urllib3/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
package:
name: urllib3
version: 2.2.0
version: 2.2.1
top-level:
- urllib3
source:
url: https://files.pythonhosted.org/packages/e2/cc/abf6746cc90bc52df4ba730f301b89b3b844d6dc133cb89a01cfe2511eb9/urllib3-2.2.0.tar.gz
sha256: 051d961ad0c62a94e50ecf1af379c3aba230c66c710493493560c0c223c49f20
url: https://files.pythonhosted.org/packages/7a/50/7fd50a27caa0652cd4caf224aa87741ea41d3265ad13f010886167cfcc79/urllib3-2.2.1.tar.gz
sha256: d0570876c61ab9e520d776c38acbbb5b05a776d3f9ff98a5c8fd5162a444cf19
patches:
- patches/0001-Remove-emscripten-shim.patch
test:
imports:
- urllib3
- urllib3.contrib.emscripten
about:
home: ""
PyPI: https://pypi.org/project/urllib3
Expand Down
26 changes: 26 additions & 0 deletions packages/urllib3/patches/0001-Remove-emscripten-shim.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
From 7a0d3099be580cdb10357862d07133c296224e78 Mon Sep 17 00:00:00 2001
From: Hood Chatham <[email protected]>
Date: Wed, 20 Mar 2024 18:41:24 +0100
Subject: [PATCH] Remove emscripten shim

---
src/urllib3/__init__.py | 6 ------
1 file changed, 6 deletions(-)

diff --git a/src/urllib3/__init__.py b/src/urllib3/__init__.py
index 1e0bf37b..be84504e 100644
--- a/src/urllib3/__init__.py
+++ b/src/urllib3/__init__.py
@@ -203,9 +203,3 @@ def request(
timeout=timeout,
json=json,
)
-
-
-if sys.platform == "emscripten":
- from .contrib.emscripten import inject_into_urllib3 # noqa: 401
-
- inject_into_urllib3()
--
2.34.1

0 comments on commit f1c7495

Please sign in to comment.