[Python-apps-commits] r11007 - in packages/spambayes/trunk/debian (3 files)
hugo6390-guest at users.alioth.debian.org
hugo6390-guest at users.alioth.debian.org
Sun Jun 29 19:42:40 UTC 2014
Date: Sunday, June 29, 2014 @ 19:42:39
Author: hugo6390-guest
Revision: 11007
Fixed bug #600628.
Added:
packages/spambayes/trunk/debian/patches/deprecation_warning_fix.patch
Modified:
packages/spambayes/trunk/debian/changelog
packages/spambayes/trunk/debian/patches/series
Modified: packages/spambayes/trunk/debian/changelog
===================================================================
--- packages/spambayes/trunk/debian/changelog 2014-06-29 19:11:54 UTC (rev 11006)
+++ packages/spambayes/trunk/debian/changelog 2014-06-29 19:42:39 UTC (rev 11007)
@@ -1,3 +1,12 @@
+spambayes (1.1b1-2) unstable; urgency=low
+
+ * debian/patches/deprecation_warning_fix.patch, debian/patches/series:
+ - Added deprecation_warning_fix.patch to fix the 'from sets
+ import Set' warning. (closes: #600628)
+
+
+ -- Hugo Lefeuvre <hugo6390 at orange.fr> Sun, 29 Jun 2014 21:12:29 +0200
+
spambayes (1.1b1-1) unstable; urgency=low
[ Jakub Wilk ]
Added: packages/spambayes/trunk/debian/patches/deprecation_warning_fix.patch
===================================================================
--- packages/spambayes/trunk/debian/patches/deprecation_warning_fix.patch (rev 0)
+++ packages/spambayes/trunk/debian/patches/deprecation_warning_fix.patch 2014-06-29 19:42:39 UTC (rev 11007)
@@ -0,0 +1,32 @@
+--- tokenizer.py-orig 2010-10-18 11:57:53.166412822 -0200
++++ tokenizer.py 2010-10-18 11:58:22.863268936 -0200
+@@ -16,7 +16,12 @@
+ import urlparse
+ import urllib
+ try:
+- from sets import Set
++ import sys
++ if sys.version_info < (2, 4, 0):
++ from sets import Set
++ del sys
++ else:
++ Set = set
+ except ImportError:
+ from compatsets import Set
+
+--- classifier.py-orig 2010-10-18 11:56:17.656524146 -0200
++++ classifier.py 2010-10-18 11:55:42.460250309 -0200
+@@ -40,7 +40,12 @@
+ import math
+ import types
+ try:
+- from sets import Set
++ import sys
++ if sys.version_info < (2, 4, 0):
++ from sets import Set
++ del sys
++ else:
++ Set = set
+ except ImportError:
+ from spambayes.compatsets import Set
+
Modified: packages/spambayes/trunk/debian/patches/series
===================================================================
--- packages/spambayes/trunk/debian/patches/series 2014-06-29 19:11:54 UTC (rev 11006)
+++ packages/spambayes/trunk/debian/patches/series 2014-06-29 19:42:39 UTC (rev 11007)
@@ -1,3 +1,4 @@
+deprecation_warning_fix.patch
gnus_fix.patch
paths_fix.patch
asyncore.patch
More information about the Python-apps-commits
mailing list