[Python-modules-commits] r24948 - in packages/geopy/trunk/debian/patches (1 file)

eriol-guest at users.alioth.debian.org eriol-guest at users.alioth.debian.org
Mon Jun 24 22:29:24 UTC 2013


    Date: Monday, June 24, 2013 @ 22:29:23
  Author: eriol-guest
Revision: 24948

Enhanced

Modified:
  packages/geopy/trunk/debian/patches/02_fix_missing_imports.patch

Modified: packages/geopy/trunk/debian/patches/02_fix_missing_imports.patch
===================================================================
--- packages/geopy/trunk/debian/patches/02_fix_missing_imports.patch	2013-06-24 22:04:59 UTC (rev 24947)
+++ packages/geopy/trunk/debian/patches/02_fix_missing_imports.patch	2013-06-24 22:29:23 UTC (rev 24948)
@@ -4,12 +4,18 @@
 
 --- a/geopy/geocoders/wiki_gis.py
 +++ b/geopy/geocoders/wiki_gis.py
-@@ -3,6 +3,8 @@
+@@ -3,6 +3,14 @@
  import xml
  from xml.parsers.expat import ExpatError
  
-+from BeautifulSoup import BeautifulSoup
++from geopy import util
 +
++try:
++    from BeautifulSoup import BeautifulSoup
++except ImportError:
++    util.logger.warn("BeautifulSoup was not found. "
++                     "The MediaWiki geocoder will not work.")
++
  from geopy.geocoders.base import Geocoder,GeocoderError,GeocoderResultError
  from geopy import Point, Location, util
  




More information about the Python-modules-commits mailing list