-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop six as a requirement; add six_shim.py (#618)
- Loading branch information
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
""" | ||
Replacement module for what html5lib uses six for. | ||
""" | ||
|
||
import http.client | ||
import operator | ||
import urllib | ||
|
||
|
||
PY3 = True | ||
binary_type = bytes | ||
string_types = (str,) | ||
text_type = str | ||
unichr = chr | ||
viewkeys = operator.methodcaller("keys") | ||
|
||
http_client = http.client | ||
urllib = urllib | ||
urllib_parse = urllib.parse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,6 @@ def get_version(): | |
|
||
INSTALL_REQUIRES = [ | ||
# html5lib requirements | ||
"six>=1.9.0", | ||
"webencodings", | ||
] | ||
|
||
|