diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-26 04:48:38 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-26 04:48:38 +0000 |
| commit | 3a015b31ab90241a4354ed2d42f84fd5f38b1e36 (patch) | |
| tree | 85dc17ee4f6af1ba9d3444286c08a1d2547e15b4 | |
| parent | a307e843ce9e32f880eeff6f119bb819df6c3d6b (diff) | |
| download | ruby-3a015b31ab90241a4354ed2d42f84fd5f38b1e36.tar.gz ruby-3a015b31ab90241a4354ed2d42f84fd5f38b1e36.tar.xz ruby-3a015b31ab90241a4354ed2d42f84fd5f38b1e36.zip | |
* lib/tempfile.rb (Tempfile#unlink): reverted r23494, since the
usage in RubyInline is considered wrong.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | lib/tempfile.rb | 1 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Wed Aug 26 13:48:33 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * lib/tempfile.rb (Tempfile#unlink): reverted r23494, since the + usage in RubyInline is considered wrong. + Wed Aug 26 12:36:58 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> * vm.c (collect_local_variables_in_env): skips internal variables. diff --git a/lib/tempfile.rb b/lib/tempfile.rb index a00208cd7..1bee9e101 100644 --- a/lib/tempfile.rb +++ b/lib/tempfile.rb @@ -137,7 +137,6 @@ class Tempfile < DelegateClass(File) # keep this order for thread safeness begin if File.exist?(@tmpname) - closed? or close File.unlink(@tmpname) end @@cleanlist.delete(@tmpname) |
