mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Remove the gopherlib module. It has been raising a DeprecationWarning since
Python 2.5. Also remove gopher support from urllib/urllib2. As both imported gopherlib the usage of the support would have raised a DeprecationWarning.
This commit is contained in:
parent
b1a9b37aa8
commit
d75f043c33
12 changed files with 10 additions and 347 deletions
|
@ -3,10 +3,6 @@ from test.test_support import verbose, run_unittest
|
|||
import sys
|
||||
import warnings
|
||||
|
||||
warnings.filterwarnings("ignore",
|
||||
"the gopherlib module is deprecated",
|
||||
DeprecationWarning,
|
||||
"<string>")
|
||||
warnings.filterwarnings("ignore", "the sets module is deprecated",
|
||||
DeprecationWarning, "<string>")
|
||||
warnings.filterwarnings("ignore", ".*popen2 module is deprecated.*",
|
||||
|
@ -84,7 +80,6 @@ class AllTest(unittest.TestCase):
|
|||
self.check_all("getpass")
|
||||
self.check_all("gettext")
|
||||
self.check_all("glob")
|
||||
self.check_all("gopherlib")
|
||||
self.check_all("gzip")
|
||||
self.check_all("heapq")
|
||||
self.check_all("htmllib")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue