Skip to content

Commit c30d7a2

Browse files
committed
Make tempfile._TemporaryFileWrapper public as TemporaryFileWrapper
1 parent a790753 commit c30d7a2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/test_urllib_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def setUp(self):
2121
def test_with(self):
2222
addbase = urllib.response.addbase(self.fp)
2323

24-
self.assertIsInstance(addbase, tempfile._TemporaryFileWrapper)
24+
self.assertIsInstance(addbase, tempfile.TemporaryFileWrapper)
2525

2626
def f():
2727
with addbase as spam:

Lib/urllib/response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
__all__ = ['addbase', 'addclosehook', 'addinfo', 'addinfourl']
1212

1313

14-
class addbase(tempfile._TemporaryFileWrapper):
14+
class addbase(tempfile.TemporaryFileWrapper):
1515
"""Base class for addinfo and addclosehook. Is a good idea for garbage collection."""
1616

1717
# XXX Add a method to expose the timeout on the underlying socket?

0 commit comments

Comments
 (0)