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
ae601b08
Commit
ae601b08
authored
Apr 20, 2015
by
Olivier R-D
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support unicode in variant for python2
parent
3325ec0d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
opcua/uatypes.py
opcua/uatypes.py
+4
-1
No files found.
opcua/uatypes.py
View file @
ae601b08
...
@@ -5,6 +5,9 @@ import logging
...
@@ -5,6 +5,9 @@ import logging
from
enum
import
Enum
from
enum
import
Enum
from
datetime
import
datetime
,
timedelta
,
tzinfo
from
datetime
import
datetime
,
timedelta
,
tzinfo
from
calendar
import
timegm
from
calendar
import
timegm
import
sys
if
sys
.
version_info
.
major
>
2
:
unicode
=
str
import
uuid
import
uuid
import
struct
import
struct
...
@@ -581,7 +584,7 @@ class Variant(object):
...
@@ -581,7 +584,7 @@ class Variant(object):
return
VariantType
.
Double
return
VariantType
.
Double
elif
type
(
val
)
==
int
:
elif
type
(
val
)
==
int
:
return
VariantType
.
Int64
return
VariantType
.
Int64
elif
type
(
val
)
==
str
:
elif
type
(
val
)
in
(
str
,
unicode
)
:
return
VariantType
.
String
return
VariantType
.
String
elif
type
(
val
)
==
bytes
:
elif
type
(
val
)
==
bytes
:
return
VariantType
.
ByteString
return
VariantType
.
ByteString
...
...
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