Skip to content

Commit bce890a

Browse files
committed
Fixed django#16584 -- Fixed a bunch of typos in code comments. Thanks, Bernhard Essl.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16598 bcc190cf-cafb-0310-a4f2-bffc1f526a37
1 parent 4a993fa commit bce890a

28 files changed

Lines changed: 35 additions & 35 deletions

File tree

django/conf/global_settings.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
TEMPLATE_DEBUG = False
1414

1515
# Whether the framework should propagate raw exceptions rather than catching
16-
# them. This is useful under some testing siutations and should never be used
16+
# them. This is useful under some testing situations and should never be used
1717
# on a live site.
1818
DEBUG_PROPAGATE_EXCEPTIONS = False
1919

@@ -389,7 +389,7 @@
389389
# Boolean that sets whether to add thousand separator when formatting numbers
390390
USE_THOUSAND_SEPARATOR = False
391391

392-
# Number of digits that will be together, when spliting them by
392+
# Number of digits that will be together, when splitting them by
393393
# THOUSAND_SEPARATOR. 0 means no grouping, 3 means splitting by thousands...
394394
NUMBER_GROUPING = 0
395395

@@ -506,7 +506,7 @@
506506
# MESSAGES #
507507
############
508508

509-
# Class to use as messges backend
509+
# Class to use as messages backend
510510
MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
511511

512512
# Default values of MESSAGE_LEVEL and MESSAGE_TAGS are defined within

django/contrib/comments/views/comments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def post_comment(request, next=None, using=None):
8787
# preview templates, so we have to preserve that format.
8888
"comments/%s_%s_preview.html" % (model._meta.app_label, model._meta.module_name),
8989
"comments/%s_preview.html" % model._meta.app_label,
90-
# Now the usual directory based template heirarchy.
90+
# Now the usual directory based template hierarchy.
9191
"comments/%s/%s/preview.html" % (model._meta.app_label, model._meta.module_name),
9292
"comments/%s/preview.html" % model._meta.app_label,
9393
"comments/preview.html",

django/contrib/comments/views/moderation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def approve(request, comment_id, next=None):
8787
)
8888

8989
# The following functions actually perform the various flag/aprove/delete
90-
# actions. They've been broken out into seperate functions to that they
90+
# actions. They've been broken out into separate functions to that they
9191
# may be called from admin actions.
9292

9393
def perform_flag(request, comment):

django/contrib/formtools/wizard/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def get_initkwargs(cls, form_list, initial_dict=None,
152152
# if not, add the form with a zero based counter as unicode
153153
init_form_list[unicode(i)] = form
154154

155-
# walk through the ne created list of forms
155+
# walk through the new created list of forms
156156
for form in init_form_list.itervalues():
157157
if issubclass(form, formsets.BaseFormSet):
158158
# if the element is based on BaseFormSet (FormSet/ModelFormSet)

django/contrib/gis/db/backends/postgis/operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ def spatial_lookup_sql(self, lvalue, lookup_type, value, field, qn):
536536
op = op(self.geom_func_prefix, value[1])
537537
elif lookup_type in self.distance_functions and lookup_type != 'dwithin':
538538
if not field.geography and field.geodetic(self.connection):
539-
# Geodetic distances are only availble from Points to
539+
# Geodetic distances are only available from Points to
540540
# PointFields on PostGIS 1.4 and below.
541541
if not self.connection.ops.geography:
542542
if field.geom_type != 'POINT':

django/contrib/gis/db/backends/spatialite/operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class SpatiaLiteOperations(DatabaseOperations, BaseSpatialOperations):
9090
'contains' : SpatiaLiteFunction('Contains'),
9191
'intersects' : SpatiaLiteFunction('Intersects'),
9292
'relate' : (SpatiaLiteRelate, basestring),
93-
# Retruns true if B's bounding box completely contains A's bounding box.
93+
# Returns true if B's bounding box completely contains A's bounding box.
9494
'contained' : SpatiaLiteFunction('MbrWithin'),
9595
# Returns true if A's bounding box completely contains B's bounding box.
9696
'bbcontains' : SpatiaLiteFunction('MbrContains'),

django/contrib/gis/gdal/envelope.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def __init__(self, *args):
5050
else:
5151
raise TypeError('Incorrect type of argument: %s' % str(type(args[0])))
5252
elif len(args) == 4:
53-
# Individiual parameters passed in.
53+
# Individual parameters passed in.
5454
# Thanks to ww for the help
5555
self._from_sequence(map(float, args))
5656
else:
@@ -125,7 +125,7 @@ def expand_to_include(self, *args):
125125
# An x and an y parameter were passed in
126126
return self.expand_to_include((args[0], args[1], args[0], args[1]))
127127
elif len(args) == 4:
128-
# Individiual parameters passed in.
128+
# Individual parameters passed in.
129129
return self.expand_to_include(args)
130130
else:
131131
raise OGRException('Incorrect number (%d) of arguments.' % len(args[0]))

django/contrib/gis/geos/prototypes/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ class ThreadLocalIO(threading.local):
207207
thread_context = ThreadLocalIO()
208208

209209
# These module-level routines return the I/O object that is local to the
210-
# the thread. If the I/O object does not exist yet it will be initialized.
210+
# thread. If the I/O object does not exist yet it will be initialized.
211211
def wkt_r():
212212
if not thread_context.wkt_r:
213213
thread_context.wkt_r = _WKTReader()

django/contrib/gis/maps/google/zoom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def __init__(self, num_zoom=19, tilesize=256):
4141
# Getting the degrees and radians per pixel, and the 1/2 the number of
4242
# for every zoom level.
4343
self._degpp.append(z / 360.) # degrees per pixel
44-
self._radpp.append(z / (2 * pi)) # radians per pixl
44+
self._radpp.append(z / (2 * pi)) # radians per pixel
4545
self._npix.append(z / 2) # number of pixels to center of tile
4646

4747
# Multiplying `z` by 2 for the next iteration.

django/contrib/gis/tests/geoapp/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ def test27_snap_to_grid(self):
671671
'12.40500 43.94833,12.40889 43.95499,12.41580 43.95795)))')
672672
sm = Country.objects.create(name='San Marino', mpoly=fromstr(wkt))
673673

674-
# Because floating-point arithmitic isn't exact, we set a tolerance
674+
# Because floating-point arithmetic isn't exact, we set a tolerance
675675
# to pass into GEOS `equals_exact`.
676676
tol = 0.000000001
677677

0 commit comments

Comments
 (0)