mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 23:10:17 +00:00
more markup fiddling
This commit is contained in:
@@ -1263,7 +1263,7 @@ NameError: global name 'reduce' is not defined</samp></pre>
|
||||
return 0.01
|
||||
|
||||
<del>- total = reduce(operator.add, self._mFreqCounter)</del>
|
||||
<ins>+ total = 0
|
||||
<ins>+ total = 0</ins>
|
||||
<ins>+ for frequency in self._mFreqCounter:</ins>
|
||||
<ins>+ total += frequency</ins></code></pre>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user