Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

`is` should not be used on primitive objects, use == instead, correctly.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16719 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 9110257a328bacae0a6131ca7b3c8b241fef128c 1 parent f4d93f6
@alex alex authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/localflavor/mx/forms.py
View
2  django/contrib/localflavor/mx/forms.py
@@ -143,7 +143,7 @@ def _checksum(self, rfc):
www.sisi.org.mx/jspsi/documentos/2005/seguimiento/06101/0610100162005_065.doc
"""
chars = u'0123456789ABCDEFGHIJKLMN&OPQRSTUVWXYZ-Ñ'
- if len(rfc) is 11:
+ if len(rfc) == 11:
rfc = '-' + rfc
sum_ = sum(i * chars.index(c) for i, c in zip(reversed(xrange(14)), rfc))
Please sign in to comment.
Something went wrong with that request. Please try again.