diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-07 03:47:46 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-07 03:47:46 +0000 |
commit | fa46fb0ac8a47ed9c3ddcbd64784091b2d06437a (patch) | |
tree | e53f6129e707eb68884de7ad712b48215bee7f58 /tool/vcs.rb | |
parent | a88640022e8febe582f66faaeef4c820455da701 (diff) | |
download | ruby-fa46fb0ac8a47ed9c3ddcbd64784091b2d06437a.tar.gz |
vcs.rb: suppress warning
* tool/vcs.rb (DebugPOpen): suppress refinements warning in 2.0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/vcs.rb')
-rw-r--r-- | tool/vcs.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tool/vcs.rb b/tool/vcs.rb index 5ef77e424d..43b18e4879 100644 --- a/tool/vcs.rb +++ b/tool/vcs.rb @@ -79,12 +79,15 @@ if RUBY_VERSION < "2.0" end else module DebugPOpen + verbose, $VERBOSE = $VERBOSE, nil if RUBY_VERSION < "2.1" refine IO.singleton_class do def popen(*args) STDERR.puts args.inspect if $DEBUG super end end + ensure + $VERBOSE = verbose unless verbose.nil? end using DebugPOpen end |