rfk/pyramid — comment on commit 64cd07729ce554e506fb8a76a51d42d13de9c642
File:  line 0
By bbangert:

The only issue I see with this patch is that it uses xrange, which doesn't exist in Python 3, and we're currently working to try and maintain Python 3 forwards compatibility.

An alternative way that will still work in Python 3 (taken from Beaker's comparison portion):

```python
invalid_bits = 0
for a, b in zip(string1, string2):
invalid_bits += a != b

return bool(invalid_bits)
```