Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
badw-it
DHParser
Commits
75f578bd
Commit
75f578bd
authored
Jan 31, 2019
by
di68kap
Browse files
- Kompatibilität mit cython
parent
32e93e8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
DHParser/syntaxtree.py
View file @
75f578bd
...
@@ -190,7 +190,8 @@ class Node: # (collections.abc.Sized): Base class omitted for cython-compatibil
...
@@ -190,7 +190,8 @@ class Node: # (collections.abc.Sized): Base class omitted for cython-compatibil
duplicate
.
_pos
=
self
.
_pos
duplicate
.
_pos
=
self
.
_pos
duplicate
.
_len
=
self
.
_len
duplicate
.
_len
=
self
.
_len
if
self
.
attr_active
():
if
self
.
attr_active
():
duplicate
.
_xml_attr
=
copy
.
deepcopy
(
self
.
_xml_attr
)
duplicate
.
attr
.
update
(
copy
.
deepcopy
(
self
.
_xml_attr
))
# duplicate._xml_attr = copy.deepcopy(self._xml_attr) # this is not cython compatible
return
duplicate
return
duplicate
def
__str__
(
self
):
def
__str__
(
self
):
...
@@ -748,7 +749,8 @@ class RootNode(Node):
...
@@ -748,7 +749,8 @@ class RootNode(Node):
duplicate
.
_pos
=
self
.
_pos
duplicate
.
_pos
=
self
.
_pos
duplicate
.
_len
=
self
.
_len
duplicate
.
_len
=
self
.
_len
if
self
.
attr_active
():
if
self
.
attr_active
():
duplicate
.
_xml_attr
=
copy
.
deepcopy
(
self
.
_xml_attr
)
duplicate
.
attr
.
update
(
copy
.
deepcopy
(
self
.
_xml_attr
))
# duplicate._xml_attr = copy.deepcopy(self._xml_attr)
duplicate
.
all_errors
=
copy
.
deepcopy
(
self
.
all_errors
)
duplicate
.
all_errors
=
copy
.
deepcopy
(
self
.
all_errors
)
duplicate
.
error_flag
=
self
.
error_flag
duplicate
.
error_flag
=
self
.
error_flag
duplicate
.
inline_tags
=
self
.
inline_tags
duplicate
.
inline_tags
=
self
.
inline_tags
...
...
build_cython-modules.bat
View file @
75f578bd
del
DHParser
\
*
.pyd
del
DHParser
\
syntaxtree
*
.pyd
del
DHParser
\
*
.c
del
DHParser
\
syntaxtree
*
.c
python
.exe
setup
.py
build_ext
--inplace
python
.exe
setup
.py
build_ext
--inplace
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment