original_docstring: 
          Context manager that opens a transaction and closes it at the end of it's code block, use with the 'with'
          statement
  
          Example::
  
              conn = RexproSyncConnection(host, port, graph_name)
              with conn.transaction():
                  results = conn.execute(script, params)
  
          
docstring: Context manager that opens a transaction and closes it at the end of it's code block, use with the 'with'
  statement
  
  
  
  
docstring_tokens: Context manager that opens a transaction and closes it at the end of it ' s code block use with the ' with ' statement
code: def transaction(self):
          """
          Context manager that opens a transaction and closes it at the end of it's code block, use with the 'with'
          statement
  
          Example::
  
              conn = RexproSyncConnection(host, port, graph_name)
              with conn.transaction():
                  results = conn.execute(script, params)
  
          """
          self.test_connection()
          self.open_transaction()
          try:
              yield
          except:
              self.close_transaction(False)
              raise
          else:
              self.close_transaction(True)
code_tokens: def transaction ( self ) : self . test_connection ( ) self . open_transaction ( ) try : yield except : self . close_transaction ( False ) raise else : self . close_transaction ( True )
short_docstring: Context manager that opens a transaction and closes it at the end of it's code block, use with the 'with'
  statement
short_docstring_tokens: Context manager that opens a transaction and closes it at the end of it ' s code block use with the ' with ' statement
comment: """
          Context manager that opens a transaction and closes it at the end of it's code block, use with the 'with'
          statement
  
          Example::
  
              conn = RexproSyncConnection(host, port, graph_name)
              with conn.transaction():
                  results = conn.execute(script, params)
  
          """