Mailinglist Archive: opensuse-commit (705 mails)

< Previous Next >
commit Supybot
  • From: root@xxxxxxx (h_root)
  • Date: Sat, 8 Jul 2006 17:19:40 +0200 (CEST)
  • Message-id: <20060708151940.3E686949C7@xxxxxxxxxxxxxxx>

Hello community,

here is the log from the commit of package Supybot
checked in at Sat Jul 8 17:19:39 CEST 2006.

--------
--- Supybot/Supybot.changes 2006-02-28 16:46:04.000000000 +0100
+++ Supybot/Supybot.changes 2006-07-07 23:56:32.000000000 +0200
@@ -1,0 +2,5 @@
+Fri Jul 7 23:56:01 CEST 2006 - schwab@xxxxxxx
+
+- Allow floating point values in Weather plugin.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ Supybot.spec ++++++
--- /var/tmp/diff_new_pack.VSNTPR/_old 2006-07-08 17:19:31.000000000 +0200
+++ /var/tmp/diff_new_pack.VSNTPR/_new 2006-07-08 17:19:31.000000000 +0200
@@ -14,7 +14,7 @@
BuildRequires: python-devel
Summary: IRC Bot
Version: 0.83.1
-Release: 5
+Release: 15
Group: Productivity/Networking/IRC
License: BSD
URL: http://supybot.com/
@@ -71,6 +71,8 @@
%doc %{_mandir}/man1/*.gz

%changelog -n Supybot
+* Fri Jul 07 2006 - schwab@xxxxxxx
+- Allow floating point values in Weather plugin.
* Tue Feb 28 2006 - jmatejek@xxxxxxx
- updated to reflect python changes due to #149809
* Mon Feb 06 2006 - schwab@xxxxxxx

++++++ Supybot-plugins-20050830.diff ++++++
--- /var/tmp/diff_new_pack.VSNTPR/_old 2006-07-08 17:19:31.000000000 +0200
+++ /var/tmp/diff_new_pack.VSNTPR/_new 2006-07-08 17:19:31.000000000 +0200
@@ -1,5 +1,50 @@
--- Weather/plugin.py
+++ Weather/plugin.py
+@@ -110,7 +110,7 @@
+ _temp = re.compile(r'(-?\d+)(.*?)(F|C)')
+ def _getTemp(temp, deg, unit, chan):
+ assert unit == unit.upper()
+- assert temp == int(temp)
++ assert temp == float(temp)
+ default = conf.get(conf.supybot.plugins.Weather.temperatureUnit, chan)
+ if unitAbbrevs[unit] == default:
+ # Short circuit if we're the same unit as the default.
+@@ -236,7 +236,7 @@
+ (temp, deg, unit) = temp.groups()
+ deg = utils.web.htmlToText(deg)
+ if convert:
+- temp = self._getTemp(int(temp), deg, unit, msg.args[0])
++ temp = self._getTemp(float(temp), deg, unit, msg.args[0])
+ else:
+ temp = deg.join((temp, unit))
+ conds = self._hamCond.search(html)
+@@ -251,7 +251,7 @@
+ tempsplit = self._temp.search(chill)
+ if tempsplit:
+ (chill, deg, unit) = tempsplit.groups()
+- chill = self._getTemp(int(chill), deg, unit,msg.args[0])
++ chill = self._getTemp(float(chill), deg, unit,msg.args[0])
+ if float(chill[:-2]) < float(temp[:-2]):
+ index = format(' (Wind Chill: %s)', chill)
+ heat = self._hamHeat.search(html)
+@@ -263,7 +263,7 @@
+ if tempsplit:
+ (heat, deg, unit) = tempsplit.groups()
+ if convert:
+- heat = self._getTemp(int(heat), deg, unit,msg.args[0])
++ heat = self._getTemp(float(heat), deg, unit,msg.args[0])
+ if float(heat[:-2]) > float(temp[:-2]):
+ index = format(' (Heat Index: %s)', heat)
+ if temp and conds and city and state:
+@@ -329,7 +329,7 @@
+ location = location.split('-')[-1].strip()
+ (temp, deg, unit) = temp.groups()
+ if convert:
+- temp = self._getTemp(int(temp), deg, unit, msg.args[0])
++ temp = self._getTemp(float(temp), deg, unit, msg.args[0])
+ else:
+ temp = deg.join((temp, unit))
+ resp = [format('The current temperature in %s is %s.',
@@ -352,7 +352,7 @@
_wunderUrl = 'http://mobile.wunderground.com/cgi-bin/' \
'findweather/getForecast?query='
@@ -9,3 +54,30 @@
_wunderMultiLoc = re.compile(r'<a href="([^"]+)', re.I | re.S)
def wunder(self, irc, msg, args, loc):
"""<US zip code | US/Canada city, state | Foreign city, country>
+@@ -417,7 +417,7 @@
+ if location and temp:
+ (temp, deg, unit) = temp.split()[3:] # We only want temp format
+ if convert:
+- temp = Weather._getTemp(int(temp), deg, unit, msg.args[0])
++ temp = Weather._getTemp(float(temp), deg, unit, msg.args[0])
+ else:
+ temp = deg.join((temp, unit))
+ resp = ['The current temperature in %s is %s (%s).' %\
+@@ -433,7 +433,7 @@
+ try:
+ (dew, deg, unit) = info['Dew Point'].split()[3:]
+ if convert:
+- dew = Weather._getTemp(int(dew), deg,
++ dew = Weather._getTemp(float(dew), deg,
+ unit, msg.args[0])
+ else:
+ dew = deg.join((dew, unit))
+@@ -448,7 +448,7 @@
+ try:
+ (chill, deg, unit) = info['Windchill'].split()[3:]
+ if convert:
+- chill = Weather._getTemp(int(chill), deg,
++ chill = Weather._getTemp(float(chill), deg,
+ unit, msg.args[0])
+ else:
+ dew = deg.join((chill, unit))


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...


---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit-unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-commit-help@xxxxxxxxxxxx

< Previous Next >
This Thread