On Fri, Mar 12, 2010 at 02:05:13PM +0000, The Fungi wrote:
> I've confirmed this bug is still present in my development version
> as well. I'll see if I can track down and fix the issue shortly.

Apologies for the delay... attached is a patch which solves this
issue in 1.4. I've integrated my development branch, which should be
released as 1.5 some time this week (and will submit an updated
Debian package for it at that time).

Thanks again for pointing this out!
-- 
{ IRL(Jeremy_Stanley); PGP(9E8DFF2E4F5995F8FEADDC5829ABF7441FB84657);
SMTP(fu...@yuggoth.org); IRC(fu...@irc.yuggoth.org#ccl); ICQ(114362511);
AIM(dreadazathoth); YAHOO(crawlingchaoslabs); FINGER(fu...@yuggoth.org);
MUD(fu...@katarsis.mudpy.org:6669); WWW(http://fungi.yuggoth.org/); }
diff -ru a/usr/share/pyshared/weather.py b/usr/share/pyshared/weather.py
--- a/usr/share/pyshared/weather.py	2010-03-15 00:35:49.000000000 +0000
+++ b/usr/share/pyshared/weather.py	2010-03-15 00:40:56.000000000 +0000
@@ -92,9 +92,11 @@
       headerlist = headers.lower().replace("_"," ").split(",")
       output = []
       if not quiet:
-         output.append("Current conditions at " \
-            + lines[0].split(", ")[1] + " (" \
-            + id.upper() +")")
+         title = "Current conditions at %s"
+         place = lines[0].split(", ")
+         if len(place) > 1: place = "%s, %s (%s)" % place[:2] + (id.upper(),)
+         else: place = id.upper()
+         output.append(title%place)
          output.append("Last updated " + lines[1])
       for header in headerlist:
          for line in lines:
Only in b/usr/share/pyshared: weather.py.orig

Reply via email to