Skip to content

Commit 9ddf1ad

Browse files
committed
Add FIXMEs for more python 3 porting.
1 parent 39a9bba commit 9ddf1ad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

shapefile-to-json.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ class LonLat:
8181
def __init__(self, lon, lat):
8282
self.lon = lon
8383
self.lat = lat
84+
# FIXME: __cmp__ no longer exists in python 3
8485
def __cmp__(self, other):
8586
result = cmp(self.lon, other.lon)
8687
if result != 0:
@@ -100,6 +101,7 @@ def __init__(self, a, b):
100101
assert a < b
101102
self.a = a
102103
self.b = b
104+
# FIXME: __cmp__ no longer exists in python 3
103105
def __cmp__(self, other):
104106
result = cmp(self.a, other.a)
105107
if result != 0:

0 commit comments

Comments
 (0)