Author: Alex
Date: 2011-09-03 12:50:45 -0700 (Sat, 03 Sep 2011)
New Revision: 16719

Modified:
   django/trunk/django/contrib/localflavor/mx/forms.py
Log:
`is` should not be used on primitive objects, use == instead, correctly.

Modified: django/trunk/django/contrib/localflavor/mx/forms.py
===================================================================
--- django/trunk/django/contrib/localflavor/mx/forms.py 2011-09-03 17:46:16 UTC 
(rev 16718)
+++ django/trunk/django/contrib/localflavor/mx/forms.py 2011-09-03 19:50:45 UTC 
(rev 16719)
@@ -143,7 +143,7 @@
             
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))

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to