diff options
Diffstat (limited to 'lib/pry/command.rb')
-rw-r--r-- | lib/pry/command.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/pry/command.rb b/lib/pry/command.rb index fa6d2e51..4e1674c7 100644 --- a/lib/pry/command.rb +++ b/lib/pry/command.rb @@ -288,11 +288,7 @@ class Pry end def _pry_ - loc = caller_locations(1..1).first - warn( - "#{loc.path}:#{loc.lineno}: warning: _pry_ is deprecated, use " \ - "pry_instance instead" - ) + Pry::Warning.warn('_pry_ is deprecated, use pry_instance instead') pry_instance end |