1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Revert "Show original string byte sequence to debug"

This reverts commit b42fe5937a.
This commit is contained in:
aycabta 2021-09-23 18:02:02 +09:00
parent ede95f541b
commit 4704bc0976

View file

@ -194,8 +194,6 @@ module IRB
":" + s.id2name.encode(Encoding.default_external) ":" + s.id2name.encode(Encoding.default_external)
rescue EncodingError rescue EncodingError
# ignore # ignore
rescue Encoding::InvalidByteSequenceError => e
raise "Invalid byte sequence #{s.id2name.bytes.inspect} #{e.inspect}"
end end
candidates.grep(/^#{Regexp.quote(sym)}/) candidates.grep(/^#{Regexp.quote(sym)}/)