diff options
author | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-02 22:22:26 +0000 |
---|---|---|
committer | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-02 22:22:26 +0000 |
commit | b93c74c6e844282a7bc72ace9b46011ebca16743 (patch) | |
tree | 8c839fc47cf0763bff8a5aed74c3cf05d528af87 /ext/psych | |
parent | 89ef6628ebad27dab097f0c0d09ec50637cdab4b (diff) | |
download | ruby-b93c74c6e844282a7bc72ace9b46011ebca16743.tar.gz |
* ext/psych/lib/psych/visitors/to_ruby.rb: use Regexp::NOENCODING
rather than magic number.
* ext/syck/lib/syck/rubytypes.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/psych')
-rw-r--r-- | ext/psych/lib/psych/visitors/to_ruby.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/psych/lib/psych/visitors/to_ruby.rb b/ext/psych/lib/psych/visitors/to_ruby.rb index a68c8e698e..f8b15859e1 100644 --- a/ext/psych/lib/psych/visitors/to_ruby.rb +++ b/ext/psych/lib/psych/visitors/to_ruby.rb @@ -69,9 +69,7 @@ module Psych when 'x' then options |= Regexp::EXTENDED when 'i' then options |= Regexp::IGNORECASE when 'm' then options |= Regexp::MULTILINE - - # FIXME: there is no constant for ARG_ENCODING_NONE - when 'n' then options |= 32 + when 'n' then options |= Regexp::NOENCODING else lang = option end end |