Author: russellm
Date: 2011-01-03 07:19:59 -0600 (Mon, 03 Jan 2011)
New Revision: 15134
Modified:
django/trunk/django/contrib/localflavor/tr/forms.py
django/trunk/django/db/backends/mysql/client.py
Log:
Fixed #15006 -- Removed some stray tabs in python code. Thanks to vanschelven
for the report.
Modified: django/trunk/django/contrib/localflavor/tr/forms.py
===================================================================
--- django/trunk/django/contrib/localflavor/tr/forms.py 2011-01-03 13:15:58 UTC
(rev 15133)
+++ django/trunk/django/contrib/localflavor/tr/forms.py 2011-01-03 13:19:59 UTC
(rev 15134)
@@ -50,7 +50,7 @@
class TRIdentificationNumberField(Field):
"""
A Turkey Identification Number number.
- See:
http://tr.wikipedia.org/wiki/T%C3%BCrkiye_Cumhuriyeti_Kimlik_Numaras%C4%B1
+ See:
http://tr.wikipedia.org/wiki/T%C3%BCrkiye_Cumhuriyeti_Kimlik_Numaras%C4%B1
Checks the following rules to determine whether the number is valid:
@@ -76,7 +76,7 @@
if int(value[0]) == 0:
raise ValidationError(self.error_messages['invalid'])
chksum = (sum([int(value[i]) for i in xrange(0,9,2)])*7-
- sum([int(value[i]) for i in
xrange(1,9,2)])) % 10
+ sum([int(value[i]) for i in xrange(1,9,2)])) % 10
if chksum != int(value[9]) or \
(sum([int(value[i]) for i in xrange(10)]) % 10) != int(value[10]):
raise ValidationError(self.error_messages['invalid'])
Modified: django/trunk/django/db/backends/mysql/client.py
===================================================================
--- django/trunk/django/db/backends/mysql/client.py 2011-01-03 13:15:58 UTC
(rev 15133)
+++ django/trunk/django/db/backends/mysql/client.py 2011-01-03 13:19:59 UTC
(rev 15134)
@@ -27,7 +27,7 @@
if '/' in host:
args += ["--socket=%s" % host]
else:
- args += ["--host=%s" % host]
+ args += ["--host=%s" % host]
if port:
args += ["--port=%s" % port]
if db:
--
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.