Skip to content

Commit

Permalink
is should not be used on primitive objects, use == instead, correctly.
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16719 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
alex committed Sep 3, 2011
1 parent f4d93f6 commit 9110257
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/contrib/localflavor/mx/forms.py
Expand Up @@ -143,7 +143,7 @@ def _checksum(self, rfc):
www.sisi.org.mx/jspsi/documentos/2005/seguimiento/06101/0610100162005_065.doc www.sisi.org.mx/jspsi/documentos/2005/seguimiento/06101/0610100162005_065.doc
""" """
chars = u'0123456789ABCDEFGHIJKLMN&OPQRSTUVWXYZ-Ñ' chars = u'0123456789ABCDEFGHIJKLMN&OPQRSTUVWXYZ-Ñ'
if len(rfc) is 11: if len(rfc) == 11:
rfc = '-' + rfc rfc = '-' + rfc


sum_ = sum(i * chars.index(c) for i, c in zip(reversed(xrange(14)), rfc)) sum_ = sum(i * chars.index(c) for i, c in zip(reversed(xrange(14)), rfc))
Expand Down

0 comments on commit 9110257

Please sign in to comment.