[Python-modules-commits] r24928 - in packages/geopy/trunk/debian (3 files)

eriol-guest at users.alioth.debian.org eriol-guest at users.alioth.debian.org
Sun Jun 23 23:51:54 UTC 2013


    Date: Sunday, June 23, 2013 @ 23:51:52
  Author: eriol-guest
Revision: 24928

Fix some typos

Added:
  packages/geopy/trunk/debian/patches/03_fix_typo.patch
Modified:
  packages/geopy/trunk/debian/changelog
  packages/geopy/trunk/debian/patches/series

Modified: packages/geopy/trunk/debian/changelog
===================================================================
--- packages/geopy/trunk/debian/changelog	2013-06-23 17:22:08 UTC (rev 24927)
+++ packages/geopy/trunk/debian/changelog	2013-06-23 23:51:52 UTC (rev 24928)
@@ -19,10 +19,12 @@
     - Added missing file required by unittests
   * debian/patches/02_fix_missing_imports.patch
     - Fix missing imports
+  * debian/patches/03_fix_typo.patch
+    - Fix some typos
   * debian/rules
     - Reworked for Python3 package
 
- -- Daniele Tricoli <eriol at mornie.org>  Sun, 23 Jun 2013 19:17:31 +0200
+ -- Daniele Tricoli <eriol at mornie.org>  Mon, 24 Jun 2013 01:45:51 +0200
 
 geopy (0.94.2-1) unstable; urgency=low
 

Added: packages/geopy/trunk/debian/patches/03_fix_typo.patch
===================================================================
--- packages/geopy/trunk/debian/patches/03_fix_typo.patch	                        (rev 0)
+++ packages/geopy/trunk/debian/patches/03_fix_typo.patch	2013-06-23 23:51:52 UTC (rev 24928)
@@ -0,0 +1,31 @@
+Description: Fix typos.
+Author: Daniele Tricoli <eriol at mornie.org>
+Last-Update: 2013-06-13
+
+--- a/geopy/geocoders/wiki_semantic.py
++++ b/geopy/geocoders/wiki_semantic.py
+@@ -99,10 +99,10 @@
+             relations = self.get_relations(thing)
+             for relation, resource in relations:
+                 url = things.get(resource, resource)
+-                if url in tried: # Avoid cyclic relationships.
++                if url in attempted: # Avoid cyclic relationships.
+                     continue
+-                tried.add(url)
+-                name, (latitude, longitude) = self.geocode_url(url, tried)
++                attempted.add(url)
++                name, (latitude, longitude) = self.geocode_url(url, attempted)
+                 if None not in (name, latitude, longitude):
+                     break
+ 
+--- a/geopy/geohash.py
++++ b/geopy/geohash.py
+@@ -45,7 +45,7 @@
+             try:
+                 byte = self.DECODE_MAP[char]
+             except KeyError:
+-                raise ValueError("Invalid hash: unexpected character %r." % (c,))
++                raise ValueError("Invalid hash: unexpected character %r." % (char,))
+             else:
+                 for bit in (16, 8, 4, 2, 1):
+                     if odd_bit:

Modified: packages/geopy/trunk/debian/patches/series
===================================================================
--- packages/geopy/trunk/debian/patches/series	2013-06-23 17:22:08 UTC (rev 24927)
+++ packages/geopy/trunk/debian/patches/series	2013-06-23 23:51:52 UTC (rev 24928)
@@ -1,2 +1,3 @@
 01_add_missing_test_file.patch
 02_fix_missing_imports.patch
+03_fix_typo.patch




More information about the Python-modules-commits mailing list