diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2011-01-03 13:19:59 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2011-01-03 13:19:59 +0000 |
| commit | dc25fa776a9d6650fcc4876748932f3d63d04b6e (patch) | |
| tree | d997beed803cc6d684664868ef71be08b1e57586 | |
| parent | a00e8d4e4204bfb730ba3eac2ee11ad83c8ec91b (diff) | |
Fixed #15006 -- Removed some stray tabs in python code. Thanks to vanschelven for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15134 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/contrib/localflavor/tr/forms.py | 4 | ||||
| -rw-r--r-- | django/db/backends/mysql/client.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/django/contrib/localflavor/tr/forms.py b/django/contrib/localflavor/tr/forms.py index d3bccf1667..51e446078b 100644 --- a/django/contrib/localflavor/tr/forms.py +++ b/django/contrib/localflavor/tr/forms.py @@ -50,7 +50,7 @@ class TRPhoneNumberField(CharField): 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 @@ class TRIdentificationNumberField(Field): 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']) diff --git a/django/db/backends/mysql/client.py b/django/db/backends/mysql/client.py index 24dc642abe..1cf8ceef9c 100644 --- a/django/db/backends/mysql/client.py +++ b/django/db/backends/mysql/client.py @@ -27,7 +27,7 @@ class DatabaseClient(BaseDatabaseClient): if '/' in host: args += ["--socket=%s" % host] else: - args += ["--host=%s" % host] + args += ["--host=%s" % host] if port: args += ["--port=%s" % port] if db: |
