[Python-modules-team] Bug#593575: python-pisa: Deprecation warning
W. Martin Borgert
debacle at debian.org
Thu Aug 19 12:15:33 UTC 2010
Package: python-pisa
Version: 3.0.32-1
Tags: patch
In /usr/share/pyshared/sx/w3c/css.py line 40
import sets
gives a warning:
DeprecationWarning: the sets module is deprecated
I'm not sure, but probably the following patch is OK:
--- css.py 2009-03-18 14:02:36.000000000 +0100
+++ css.py.new 2010-08-19 14:10:00.000000000 +0200
@@ -37,7 +37,6 @@
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
import copy
-import sets
import cssParser
import cssSpecial
@@ -526,12 +525,12 @@
class CSSBuilder(cssParser.CSSBuilderAbstract):
RulesetFactory = CSSRuleset
SelectorFactory = CSSMutableSelector
- MediumSetFactory = sets.Set
+ MediumSetFactory = set
DeclarationsFactory = CSSDeclarations
TermFunctionFactory = CSSTerminalFunction
TermOperatorFactory = CSSTerminalOperator
xmlnsSynonyms = {}
- mediumSet = None
+ mediumSet = []
trackImportance = True
charset = None
More information about the Python-modules-team
mailing list