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
736373dc
Commit
736373dc
authored
Jul 25, 2020
by
oroulet
Committed by
oroulet
Jul 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
split __str__ and __repr__ for Sync Node and NodeId classes
parent
35fef8d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
asyncua/sync.py
asyncua/sync.py
+3
-2
asyncua/ua/uatypes.py
asyncua/ua/uatypes.py
+3
-2
No files found.
asyncua/sync.py
View file @
736373dc
...
...
@@ -265,9 +265,10 @@ class Node:
return
not
self
.
__eq__
(
other
)
def
__str__
(
self
):
return
"Sync"
+
self
.
aio_obj
.
__str__
()
return
self
.
aio_obj
.
__str__
()
__repr__
=
__str__
def
__repr__
(
self
):
return
"Sync"
+
self
.
aio_obj
.
__repr__
()
def
__hash__
(
self
):
return
self
.
aio_obj
.
__hash__
()
...
...
asyncua/ua/uatypes.py
View file @
736373dc
...
...
@@ -404,9 +404,10 @@ class NodeId(object):
return
";"
.
join
(
string
)
def
__str__
(
self
):
return
f"
{
self
.
NodeIdType
.
name
}
NodeId(
{
self
.
to_string
()
}
)"
return
self
.
to_string
()
__repr__
=
__str__
def
__repr__
(
self
):
return
f"
{
self
.
NodeIdType
.
name
}
NodeId(
{
self
.
to_string
()
}
)"
def
to_binary
(
self
):
import
asyncua
...
...
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