Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

gis: Changed the inches attribute name from `in` (a Python reserved k…

…eyword) to `inch`. Thanks, andre_pl.

git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@8077 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 25cfbd6d665b7ac7504766f0b0900f6affdd4533 1 parent b33e709
Justin Bronn authored July 26, 2008

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  django/contrib/gis/measure.py
6  django/contrib/gis/measure.py
@@ -30,7 +30,7 @@
30 30
 Distance and Area objects to allow for sensible and convienient calculation 
31 31
 and conversions.
32 32
 
33  
-Author: Robert Coup, Justin Bronn
  33
+Authors: Robert Coup, Justin Bronn
34 34
 
35 35
 Inspired by GeoPy (http://exogen.case.edu/projects/geopy/)
36 36
 and Geoff Biggs' PhD work on dimensioned units for robotics.
@@ -101,7 +101,7 @@ class Distance(MeasureBase):
101 101
         'german_m' : 1.0000135965,
102 102
         'gold_coast_ft' : 0.304799710181508,
103 103
         'indian_yd' : 0.914398530744,
104  
-        'in' : 0.0254,
  104
+        'inch' : 0.0254,
105 105
         'km': 1000.0,
106 106
         'link' : 0.201168,
107 107
         'link_benoit' : 0.20116782,
@@ -122,7 +122,7 @@ class Distance(MeasureBase):
122 122
     ALIAS = {
123 123
         'centimeter' : 'cm',
124 124
         'foot' : 'ft',
125  
-        'inches' : 'in',
  125
+        'inches' : 'inch',
126 126
         'kilometer' : 'km',
127 127
         'kilometre' : 'km',
128 128
         'meter' : 'm',

0 notes on commit 25cfbd6

Please sign in to comment.
Something went wrong with that request. Please try again.