diff options
author | joerg <joerg@pkgsrc.org> | 2010-02-10 15:30:27 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2010-02-10 15:30:27 +0000 |
commit | b6891ba3ad737b86c6c159c52adebd5b763bffa4 (patch) | |
tree | 0073b5bd559e4f9e7a1b91d78aab280357ef19f9 /print/py-pisa/patches | |
parent | 7d0035441e2e0b2ab84e3597a3d3889bf2c0ccc7 (diff) | |
download | pkgsrc-b6891ba3ad737b86c6c159c52adebd5b763bffa4.tar.gz |
Use builtin set if present. Bump revision.
Diffstat (limited to 'print/py-pisa/patches')
-rw-r--r-- | print/py-pisa/patches/patch-aa | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/print/py-pisa/patches/patch-aa b/print/py-pisa/patches/patch-aa new file mode 100644 index 00000000000..aaf3e329ee6 --- /dev/null +++ b/print/py-pisa/patches/patch-aa @@ -0,0 +1,25 @@ +$NetBSD: patch-aa,v 1.1 2010/02/10 15:30:27 joerg Exp $ + +--- sx/w3c/css.py.orig 2010-02-10 16:17:54.000000000 +0100 ++++ sx/w3c/css.py +@@ -37,7 +37,10 @@ Dependencies:
+ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+ import copy
+-import sets
++try: ++ set ++except NameError: ++ from sets import Set as set + import cssParser
+ import cssSpecial
+
+@@ -526,7 +529,7 @@ class CSSInlineRuleset(CSSRuleset, CSSDe + class CSSBuilder(cssParser.CSSBuilderAbstract):
+ RulesetFactory = CSSRuleset
+ SelectorFactory = CSSMutableSelector
+- MediumSetFactory = sets.Set
++ MediumSetFactory = set
+ DeclarationsFactory = CSSDeclarations
+ TermFunctionFactory = CSSTerminalFunction
+ TermOperatorFactory = CSSTerminalOperator
|