diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2011-09-03 19:50:45 +0000 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2011-09-03 19:50:45 +0000 |
| commit | 9110257a328bacae0a6131ca7b3c8b241fef128c (patch) | |
| tree | 95e6e8918a263b9962a737dac253ce9eb6e31442 /django | |
| parent | f4d93f6eb859d011989a5f5a3f452d73118c657f (diff) | |
`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
Diffstat (limited to 'django')
| -rw-r--r-- | django/contrib/localflavor/mx/forms.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/localflavor/mx/forms.py b/django/contrib/localflavor/mx/forms.py index 95ca73d901..deecb4ea41 100644 --- a/django/contrib/localflavor/mx/forms.py +++ b/django/contrib/localflavor/mx/forms.py @@ -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)) |
