1. Luke Plant
  2. django

Commits

Al...@bcc190cf-cafb-0310-a4f2-bffc1f526a37  committed db1c737

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

  • Participants
  • Parent commits c121b76
  • Branches default

Comments (0)

Files changed (1)

File django/contrib/localflavor/mx/forms.py

View file
             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))