# File lib/mechanize.rb, line 530 def transact history_backup = @agent.history.dup begin yield self ensure @agent.history = history_backup end end