mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
#18741: merge with 3.3.
This commit is contained in:
commit
e0c69161bc
22 changed files with 38 additions and 36 deletions
|
@ -786,7 +786,7 @@ class ElementTree:
|
|||
|
||||
@contextlib.contextmanager
|
||||
def _get_writer(file_or_filename, encoding):
|
||||
# returns text write method and release all resourses after using
|
||||
# returns text write method and release all resources after using
|
||||
try:
|
||||
write = file_or_filename.write
|
||||
except AttributeError:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue