pkgsrc/print/py-pisa/patches/patch-aa
adam 80e708187d Changes 3.0.33:
* Changed license to Apache License 2.0, now completely Open Source
  without any charging. Feel free to continue or for this project.
* Empty cells now collapse
2011-04-15 09:00:57 +00:00

25 lines
738 B
Text

$NetBSD: patch-aa,v 1.2 2011/04/15 09:00:57 adam Exp $
--- sx/w3c/css.py.orig 2009-03-18 13:02:36.000000000 +0000
+++ 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