Skip to content

Commit

Permalink
String.__new_bytestring__ -> String.new
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/branches/icu@3724 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information
lrz committed Mar 10, 2010
1 parent 5b0df36 commit b149e72
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/rubygems/remote_fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,7 @@ def open_uri_or_path(uri, last_modified = nil, head = false, depth = 0)
if data.nil?
raise Gem::RemoteFetcher::FetchError, "error when fetching data from #{uri}"
end
string = String.__new_bytestring__(data)
#block.call(string) if block
return string
return String.new(data)
end
raise "block is dead" if block_given?

Expand Down

0 comments on commit b149e72

Please sign in to comment.