зеркало из https://github.com/github/ruby.git
Remove trailing spaces [ci skip]
This commit is contained in:
Родитель
1b3a6847be
Коммит
d2bf6133f6
|
@ -31,7 +31,7 @@ module OpenSSL::Buffering
|
|||
|
||||
force_encoding(BINARY)
|
||||
end
|
||||
|
||||
|
||||
def << string
|
||||
if string.encoding == BINARY
|
||||
super(string)
|
||||
|
|
|
@ -236,7 +236,7 @@ YoaOffgTf5qxiwkjnlVZQc3whgnEt9FpVMvQ9eknyeGB5KHfayAc3+hUAvI3/Cr3
|
|||
def fileno
|
||||
to_io.fileno
|
||||
end
|
||||
|
||||
|
||||
def addr
|
||||
to_io.addr
|
||||
end
|
||||
|
|
2
io.c
2
io.c
|
@ -1293,7 +1293,7 @@ rb_io_wait_writable(int f)
|
|||
VALUE result = rb_funcall(scheduler, rb_intern("wait_writable_fd"), 1, INT2NUM(f));
|
||||
return RTEST(result);
|
||||
}
|
||||
|
||||
|
||||
io_fd_check_closed(f);
|
||||
switch (errno) {
|
||||
case EINTR:
|
||||
|
|
|
@ -39,14 +39,14 @@ class TestFiberIO < Test::Unit::TestCase
|
|||
assert_predicate(i, :closed?)
|
||||
assert_predicate(o, :closed?)
|
||||
end
|
||||
|
||||
|
||||
def test_heavy_read
|
||||
skip unless defined?(UNIXSocket)
|
||||
|
||||
16.times.map do
|
||||
thread = Thread.new do
|
||||
i, o = UNIXSocket.pair
|
||||
|
||||
|
||||
scheduler = Scheduler.new
|
||||
Thread.current.scheduler = scheduler
|
||||
|
||||
|
|
|
@ -755,7 +755,7 @@ VALUE
|
|||
rb_gv_get(const char *name)
|
||||
{
|
||||
ID id = find_global_id(name);
|
||||
|
||||
|
||||
if (!id) {
|
||||
rb_warning("global variable `%s' not initialized", name);
|
||||
return Qnil;
|
||||
|
|
Загрузка…
Ссылка в новой задаче