summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Bronn <jbronn@gmail.com>2008-07-26 01:03:24 +0000
committerJustin Bronn <jbronn@gmail.com>2008-07-26 01:03:24 +0000
commit25cfbd6d665b7ac7504766f0b0900f6affdd4533 (patch)
tree6096aba88a053e128fab8550b5c945d7cdcf6d21
parentb33e7099811b3723c0c77c633e79f0a36eba3c96 (diff)
gis: Changed the inches attribute name from `in` (a Python reserved keyword) to `inch`. Thanks, andre_pl.
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@8077 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/gis/measure.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/django/contrib/gis/measure.py b/django/contrib/gis/measure.py
index ea2e57c1ca..42c49ce154 100644
--- a/django/contrib/gis/measure.py
+++ b/django/contrib/gis/measure.py
@@ -30,7 +30,7 @@
Distance and Area objects to allow for sensible and convienient calculation
and conversions.
-Author: Robert Coup, Justin Bronn
+Authors: Robert Coup, Justin Bronn
Inspired by GeoPy (http://exogen.case.edu/projects/geopy/)
and Geoff Biggs' PhD work on dimensioned units for robotics.
@@ -101,7 +101,7 @@ class Distance(MeasureBase):
'german_m' : 1.0000135965,
'gold_coast_ft' : 0.304799710181508,
'indian_yd' : 0.914398530744,
- 'in' : 0.0254,
+ 'inch' : 0.0254,
'km': 1000.0,
'link' : 0.201168,
'link_benoit' : 0.20116782,
@@ -122,7 +122,7 @@ class Distance(MeasureBase):
ALIAS = {
'centimeter' : 'cm',
'foot' : 'ft',
- 'inches' : 'in',
+ 'inches' : 'inch',
'kilometer' : 'km',
'kilometre' : 'km',
'meter' : 'm',