Kaydet (Commit) 9110257a authored tarafından Alex Gaynor's avatar Alex Gaynor

`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
üst f4d93f6e
......@@ -143,7 +143,7 @@ class MXRFCField(RegexField):
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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment