[Python-modules-commits] r27641 - in packages/geopy/trunk/debian (2 files)
eriol-guest at users.alioth.debian.org
eriol-guest at users.alioth.debian.org
Thu Feb 13 14:34:03 UTC 2014
Date: Thursday, February 13, 2014 @ 14:34:02
Author: eriol-guest
Revision: 27641
Refreshed debian/patches/04_use_lt_and_eq_instead_of_cmp.patch
Modified:
packages/geopy/trunk/debian/changelog
packages/geopy/trunk/debian/patches/04_use_lt_and_eq_instead_of_cmp.patch
Modified: packages/geopy/trunk/debian/changelog
===================================================================
--- packages/geopy/trunk/debian/changelog 2014-02-13 14:22:59 UTC (rev 27640)
+++ packages/geopy/trunk/debian/changelog 2014-02-13 14:34:02 UTC (rev 27641)
@@ -8,8 +8,10 @@
* debian/patches/03_fix_typo.patch
- Removed since upstream removed SemanticMediaWiki geocoder and Geohash
module
+ * debian/patches/04_use_lt_and_eq_instead_of_cmp.patch
+ - Refreshed
- -- Daniele Tricoli <eriol at mornie.org> Thu, 13 Feb 2014 14:02:29 +0100
+ -- Daniele Tricoli <eriol at mornie.org> Thu, 13 Feb 2014 15:33:11 +0100
geopy (0.95.1-1) unstable; urgency=low
Modified: packages/geopy/trunk/debian/patches/04_use_lt_and_eq_instead_of_cmp.patch
===================================================================
--- packages/geopy/trunk/debian/patches/04_use_lt_and_eq_instead_of_cmp.patch 2014-02-13 14:22:59 UTC (rev 27640)
+++ packages/geopy/trunk/debian/patches/04_use_lt_and_eq_instead_of_cmp.patch 2014-02-13 14:34:02 UTC (rev 27641)
@@ -1,13 +1,13 @@
Description: Use __lt__() and __eq__() instead of __cmp__() and cmp()
Author: Daniele Tricoli <eriol at mornie.org>
-Last-Update: 2013-06-24
+Last-Update: 2014-02-13
--- a/geopy/distance.py
+++ b/geopy/distance.py
-@@ -77,11 +77,17 @@
- def __str__(self):
+@@ -155,11 +155,17 @@
+ def __str__(self): # pragma: no cover
return '%s km' % self.__kilometers
-
+
- def __cmp__(self, other):
+ def __lt__(self, other):
if isinstance(other, Distance):
@@ -22,6 +22,6 @@
+ return self.kilometers == other.kilometers
+ else:
+ return self.kilometers == other
-
+
@property
- def kilometers(self):
+ def kilometers(self): # pylint: disable=C0111
More information about the Python-modules-commits
mailing list