Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
opcua-asyncio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikola Balog
opcua-asyncio
Commits
d294e0a5
Commit
d294e0a5
authored
Mar 15, 2019
by
oroulet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed unused loop arg in XMLParser
parent
9876011f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
asyncua/common/xmlimporter.py
asyncua/common/xmlimporter.py
+1
-1
asyncua/common/xmlparser.py
asyncua/common/xmlparser.py
+1
-2
No files found.
asyncua/common/xmlimporter.py
View file @
d294e0a5
...
...
@@ -50,7 +50,7 @@ class XmlImporter:
import xml and return added nodes
"""
self
.
logger
.
info
(
"Importing XML file %s"
,
xmlpath
)
self
.
parser
=
XMLParser
(
loop
=
self
.
server
.
loop
)
self
.
parser
=
XMLParser
()
await
self
.
parser
.
parse
(
xmlpath
,
xmlstring
)
self
.
namespaces
=
await
self
.
_map_namespaces
(
self
.
parser
.
get_used_namespaces
())
self
.
aliases
=
self
.
_map_aliases
(
self
.
parser
.
get_aliases
())
...
...
asyncua/common/xmlparser.py
View file @
d294e0a5
...
...
@@ -94,8 +94,7 @@ class ExtObj:
class
XMLParser
:
def
__init__
(
self
,
loop
=
None
):
self
.
loop
=
None
or
asyncio
.
get_event_loop
()
def
__init__
(
self
):
self
.
logger
=
logging
.
getLogger
(
__name__
)
self
.
_retag
=
re
.
compile
(
r"(\
{.*
\})(.*)"
)
self
.
root
=
None
...
...
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