original_docstring: 
          Updates the lifetime of a query.
          
docstring: Updates the lifetime of a query.
docstring_tokens: Updates the lifetime of a query .
code: def update_lifetime(self, lifetime):
          """
          Updates the lifetime of a query.
          """
  
          self.resolver.timeout = 2.0
  
          if isinstance(lifetime, (int, float)):
              if lifetime == self.resolver.timeout:
                  self.resolver.lifetime = float(lifetime) + 2.0
              else:
                  self.resolver.lifetime = float(lifetime)
          else:
              self.resolver.lifetime = self.resolver.timeout + 2.0
code_tokens: def update_lifetime ( self , lifetime ) : self . resolver . timeout = 2.0 if isinstance ( lifetime , ( int , float ) ) : if lifetime == self . resolver . timeout : self . resolver . lifetime = float ( lifetime ) + 2.0 else : self . resolver . lifetime = float ( lifetime ) else : self . resolver . lifetime = self . resolver . timeout + 2.0
short_docstring: Updates the lifetime of a query.
short_docstring_tokens: Updates the lifetime of a query .
comment: """
          Updates the lifetime of a query.
          """