From 1758d8480d23630aa00c95305955dc7408997221 Mon Sep 17 00:00:00 2001 From: John Mair Date: Tue, 6 Sep 2011 16:32:16 +1200 Subject: [PATCH] got rid of unused variable to remove warning from 1.9.3 --- lib/pry/default_commands/context.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pry/default_commands/context.rb b/lib/pry/default_commands/context.rb index 7820047b..8b9fb434 100644 --- a/lib/pry/default_commands/context.rb +++ b/lib/pry/default_commands/context.rb @@ -34,7 +34,7 @@ class Pry stack.push(Pry.binding_for(stack.last.eval(context))) end - rescue RescuableException => e + rescue RescuableException output.puts "Bad object path: #{arg_string}. Failed trying to resolve: #{context}" resolve_failure = true end @@ -147,6 +147,7 @@ class Pry set_file_and_dir_locals(file) output.puts "\n#{text.bold('From:')} #{file} @ line #{line_num} in #{klass}##{meth_name}:\n\n" + # This method inspired by http://rubygems.org/gems/ir_b File.open(file).each_with_index do |line, index| line_n = index + 1