File tree 7 files changed +8
-8
lines changed
7 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 22
22
# Fields marked as "Optional" may be commented out.
23
23
24
24
requires = ["svgwrite" ,
25
- "attrdict" ,
26
25
"six" # 2 and 3 compatibility
27
26
]
28
27
setup (
Original file line number Diff line number Diff line change 3
3
4
4
import xmldiff
5
5
import xmldiff .main
6
- from attrdict import AttrDict
7
6
from lxml import etree
8
7
9
8
from PIL import Image , ImageChops
Original file line number Diff line number Diff line change
1
+ class AttrDict (dict ):
2
+ def __init__ (self , * args , ** kwargs ):
3
+ super (AttrDict , self ).__init__ (* args , ** kwargs )
4
+ self .__dict__ = self
Original file line number Diff line number Diff line change 2
2
# SPDX-License-Identifier: MIT
3
3
4
4
import svgwrite
5
- from attrdict import AttrDict
6
-
5
+ from .attrdict import AttrDict
7
6
8
7
class SVGBase (object ):
9
8
container = AttrDict ({
Original file line number Diff line number Diff line change 4
4
# Translated to Python from original file:
5
5
# https://github.com/drom/wavedrom/blob/master/src/WaveDrom.js
6
6
7
- import attrdict
8
- css = attrdict . AttrDict ({})
7
+ from . attrdict import AttrDict
8
+ css = AttrDict ({})
9
9
css .default = """
10
10
text{font-size:11pt;
11
11
font-style:normal;
Original file line number Diff line number Diff line change 4
4
import sys
5
5
6
6
import svgwrite
7
- from attrdict import AttrDict
8
7
from six import string_types
9
8
from svgwrite .base import BaseElement
10
9
from svgwrite .etree import etree
Original file line number Diff line number Diff line change 10
10
import re
11
11
from itertools import chain
12
12
import svgwrite
13
- from attrdict import AttrDict
13
+ from . attrdict import AttrDict
14
14
from collections import deque
15
15
16
16
from six import string_types
You can’t perform that action at this time.
0 commit comments