Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxWarning in Python2.6 (MacOSX Leopard) #19

Closed
GoogleCodeExporter opened this issue Apr 12, 2016 · 1 comment
Closed

SyntaxWarning in Python2.6 (MacOSX Leopard) #19

GoogleCodeExporter opened this issue Apr 12, 2016 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant