carlhuth / google-diff-match-patch

Automatically exported from code.google.com/p/google-diff-match-patch
Apache License 2.0
0 stars 0 forks source link

SyntaxWarning in Python2.6 (MacOSX Leopard) #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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 8 years ago
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