* lib/tempfile.rb (Tempfile#unlink): reverted r23494, since the
usage in RubyInline is considered wrong. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b6cf785119
commit
d4e85c416d
@ -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>
|
Wed Aug 26 12:36:58 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* vm.c (collect_local_variables_in_env): skips internal variables.
|
* vm.c (collect_local_variables_in_env): skips internal variables.
|
||||||
|
@ -137,7 +137,6 @@ class Tempfile < DelegateClass(File)
|
|||||||
# keep this order for thread safeness
|
# keep this order for thread safeness
|
||||||
begin
|
begin
|
||||||
if File.exist?(@tmpname)
|
if File.exist?(@tmpname)
|
||||||
closed? or close
|
|
||||||
File.unlink(@tmpname)
|
File.unlink(@tmpname)
|
||||||
end
|
end
|
||||||
@@cleanlist.delete(@tmpname)
|
@@cleanlist.delete(@tmpname)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user