SyntaxWarning in Python2.6 (MacOSX Leopard)
Closed this issue · 1 comments
GoogleCodeExporter commented
diff_match_patch.py:430: SyntaxWarning: assertion is always true, perhaps
remove parentheses?
assert (text1[x] == text2[y],
diff_match_patch.py:475: SyntaxWarning: assertion is always true, perhaps
remove parentheses?
assert (text1[-x - 1] == text2[-y - 1],
diff_match_patch.py:1158: SyntaxWarning: assertion is always true, perhaps
remove parentheses?
assert (self.Match_MaxBits == 0 or len(pattern) <= self.Match_MaxBits,
SyntaxWarning: assertion is always true, perhaps remove parentheses?
assert (False, "Unknown call format to patch_make.")
Original issue reported on code.google.com by ingenier...@gmail.com
on 2 May 2009 at 12:54
GoogleCodeExporter commented
What a perfectly insidious feature of the Python syntax. Fixed. Thanks!
Original comment by neil.fra...@gmail.com
on 2 May 2009 at 1:39
- Changed state: Fixed