Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

correct probers accessor use in $debug

  • Loading branch information...
commit 16ab0a9c6c6ebf56f86d3be6f7a43b117af74f9c 1 parent 0919572
@jmhodges authored
View
3  lib/rchardet/charsetgroupprober.rb
@@ -105,9 +105,6 @@ def get_confidence()
end
return 0.0 unless @bestGuessProber
return bestConf
- # else:
- # self._mBestGuessProber = self._mProbers[0]
- # return self._mBestGuessProber.get_confidence()
end
end
end
View
2  lib/rchardet/universaldetector.rb
@@ -156,7 +156,7 @@ def close
if $debug
$stderr << "no probers hit minimum threshhold\n" if $debug
- for prober in @charSetProbers[0]._mProbers
+ for prober in @charSetProbers[0].probers
next if !prober
$stderr << "#{prober.get_charset_name} confidence = #{prober.get_confidence}\n" if $debug
end
Please sign in to comment.
Something went wrong with that request. Please try again.