-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update python-future to rev 11 via SR 754444
https://build.opensuse.org/request/show/754444 by user dimstar_suse - Update to 0.18.2: - Fix min/max functions with generators, and 'None' default (PR #514) - Use BaseException in raise_() (PR #515) - Fix builtins.round() for Decimals (Issue #501) - Fix raise_from() to prevent failures with immutable classes (PR #518) - Make FixInput idempotent (Issue #427) - Fix type in newround (PR #521) - Support mimetype guessing in urllib2 for Py3.8+ (Issue #508) - fix for raise_() when passed an exception that's not an Exception (e.g. BaseException subclasses) - Rebase future-correct-mimetype.patch to revert incorrect fix in gh#PythonCharmers/python-future#508
- Loading branch information
1 parent
3ec6341
commit 43fd152
Showing
8 changed files
with
53 additions
and
18 deletions.
There are no files selected for viewing
Binary file not shown.
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
This file was deleted.
Oops, something went wrong.
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 @@ | ||
/ipfs/bafybeihjunyoft7tg3ayyjp44cnwznllikiq2cvmhc3unrp6nl6vzzzumq |
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 |
---|---|---|
@@ -1,22 +1,22 @@ | ||
--- a/tests/test_future/test_urllib2.py 2019-10-14 12:22:14.230684473 +1100 | ||
+++ b/tests/test_future/test_urllib2.py 2019-10-14 12:35:31.722438625 +1100 | ||
@@ -691,6 +691,10 @@ | ||
--- a/tests/test_future/test_urllib2.py | ||
+++ b/tests/test_future/test_urllib2.py | ||
@@ -691,10 +691,6 @@ class HandlerTests(unittest.TestCase): | ||
h = NullFTPHandler(data) | ||
h.parent = MockOpener() | ||
|
||
+ # MIME guessing works in Python 3.8! | ||
+ guessed_mime = None | ||
+ if sys.hexversion >= 0x03080000: | ||
+ guessed_mime = "image/gif" | ||
- # MIME guessing works in Python 3.8! | ||
- guessed_mime = None | ||
- if sys.hexversion >= 0x03080000: | ||
- guessed_mime = "image/gif" | ||
for url, host, port, user, passwd, type_, dirs, filename, mimetype in [ | ||
("ftp://localhost/foo/bar/baz.html", | ||
"localhost", ftplib.FTP_PORT, "", "", "I", | ||
@@ -709,7 +714,7 @@ | ||
@@ -713,7 +709,7 @@ class HandlerTests(unittest.TestCase): | ||
["foo", "bar"], "", None), | ||
("ftp://localhost/baz.gif;type=a", | ||
"localhost", ftplib.FTP_PORT, "", "", "A", | ||
- [], "baz.gif", None), # XXX really this should guess image/gif | ||
+ [], "baz.gif", guessed_mime), | ||
- [], "baz.gif", guessed_mime), | ||
+ [], "baz.gif", None), | ||
]: | ||
req = Request(url) | ||
req.timeout = None |
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
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
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