Skip to content

Commit

Permalink
correct probers accessor use in $debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jmhodges committed Dec 2, 2012
1 parent 0919572 commit 16ab0a9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions lib/rchardet/charsetgroupprober.rb
Expand Up @@ -105,9 +105,6 @@ def get_confidence()
end end
return 0.0 unless @bestGuessProber return 0.0 unless @bestGuessProber
return bestConf return bestConf
# else:
# self._mBestGuessProber = self._mProbers[0]
# return self._mBestGuessProber.get_confidence()
end end
end end
end end
2 changes: 1 addition & 1 deletion lib/rchardet/universaldetector.rb
Expand Up @@ -156,7 +156,7 @@ def close


if $debug if $debug
$stderr << "no probers hit minimum threshhold\n" 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 next if !prober
$stderr << "#{prober.get_charset_name} confidence = #{prober.get_confidence}\n" if $debug $stderr << "#{prober.get_charset_name} confidence = #{prober.get_confidence}\n" if $debug
end end
Expand Down

0 comments on commit 16ab0a9

Please sign in to comment.