diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-03-29 06:39:50 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-03-29 06:39:50 +0000 |
commit | 544a70f7aa191b1da0f344cad1763c37943e67fb (patch) | |
tree | 193303ea0a80ff3afab2278ad36cb60b1353fe2a /lib/benchmark.rb | |
parent | 6d9e428bc560aef1c552a5a5e9db3d606febb6ab (diff) | |
download | ruby-544a70f7aa191b1da0f344cad1763c37943e67fb.tar.gz ruby-544a70f7aa191b1da0f344cad1763c37943e67fb.tar.xz ruby-544a70f7aa191b1da0f344cad1763c37943e67fb.zip |
* instruby.rb, ext/extmk.rb, lib/benchmark.rb, lib/cgi.rb,
lib/debug.rb, lib/getoptlong.rb, lib/optparse.rb, lib/time.rb,
lib/date/format.rb, lib/irb/ruby-lex.rb lib/uri/common.rb: revert
escape for `-' in character class.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/benchmark.rb')
-rw-r--r-- | lib/benchmark.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/benchmark.rb b/lib/benchmark.rb index 97573d2a1..16c4cb611 100644 --- a/lib/benchmark.rb +++ b/lib/benchmark.rb @@ -577,13 +577,13 @@ module Benchmark def format(arg0 = nil, *args) fmtstr = (arg0 || FMTSTR).dup - fmtstr.gsub!(/(%[\-+\.\d]*)n/){"#{$1}s" % label} - fmtstr.gsub!(/(%[\-+\.\d]*)u/){"#{$1}f" % utime} - fmtstr.gsub!(/(%[\-+\.\d]*)y/){"#{$1}f" % stime} - fmtstr.gsub!(/(%[\-+\.\d]*)U/){"#{$1}f" % cutime} - fmtstr.gsub!(/(%[\-+\.\d]*)Y/){"#{$1}f" % cstime} - fmtstr.gsub!(/(%[\-+\.\d]*)t/){"#{$1}f" % total} - fmtstr.gsub!(/(%[\-+\.\d]*)r/){"(#{$1}f)" % real} + fmtstr.gsub!(/(%[-+\.\d]*)n/){"#{$1}s" % label} + fmtstr.gsub!(/(%[-+\.\d]*)u/){"#{$1}f" % utime} + fmtstr.gsub!(/(%[-+\.\d]*)y/){"#{$1}f" % stime} + fmtstr.gsub!(/(%[-+\.\d]*)U/){"#{$1}f" % cutime} + fmtstr.gsub!(/(%[-+\.\d]*)Y/){"#{$1}f" % cstime} + fmtstr.gsub!(/(%[-+\.\d]*)t/){"#{$1}f" % total} + fmtstr.gsub!(/(%[-+\.\d]*)r/){"(#{$1}f)" % real} arg0 ? Kernel::format(fmtstr, *args) : fmtstr end |