class_docstr: Context to automatically close something at the end of a block.
  
  Code like this:
  
      with closing(<module>.open(<arguments>)) as f:
          <block>
  
  is equivalent to this:
  
      f = <module>.open(<arguments>)
      try:
          <block>
      finally:
          f.close()
class_docstr_tok: ["Context","to","automatically","close","something","at","the","end","of","a","block",".","Code","like","this",":","with","closing","(","<","module",">",".open","(","<","arguments",">",")",")","as","f",":","<","block",">","is","equivalent","to","this",":","f","=","<","module",">",".open","(","<","arguments",">",")","try",":","<","block",">","finally",":","f.close","(",")"]
code: def __init__(self, thing):
      self.thing = thing
  
imports: import abc
  import sys
  import warnings
  from collections import deque
  from functools import wraps
label_desc: Use image node_id 1 to create a new closing object from inherited base classes: object with example: obj = closing(thing)