1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/pathname.rb (Pathname#sub): suppress a warning. [ruby-dev:38488]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2009-05-18 12:41:08 +00:00
parent 6575009929
commit 8ce34a86a2
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Mon May 18 21:40:11 2009 Tanaka Akira <akr@fsij.org>
* lib/pathname.rb (Pathname#sub): suppress a warning. [ruby-dev:38488]
Sun May 17 23:23:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb (SRC_EXT): should be flat.

View file

@ -270,7 +270,7 @@ class Pathname
ensure
Thread.current[:pathname_sub_matchdata] = old
end
yield *args
yield(*args)
}
else
path = @path.sub(pattern, *rest)