Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
GEpressCtrlPACE5000
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software Control System
Tango devices
SampleEnvironment
GEpressCtrlPACE5000
Commits
f74f670b
Commit
f74f670b
authored
4 months ago
by
Alexandre MALFREYT
Committed by
Florent LANGLOIS
4 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove 'six' for string handling in socket commands (unused)
parent
c11ab6f3
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!2
Python 3 + améliorations
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
GEpressCtrlPACE5000/GEpressCtrlPACE5000.py
+2
-3
2 additions, 3 deletions
GEpressCtrlPACE5000/GEpressCtrlPACE5000.py
with
2 additions
and
3 deletions
GEpressCtrlPACE5000/GEpressCtrlPACE5000.py
+
2
−
3
View file @
f74f670b
...
...
@@ -50,7 +50,6 @@ import sys
import
os
from
GEpressCtrlPACE5000Channel
import
GEpressCtrlPACE5000Channel
,
GEpressCtrlPACE5000ChannelClass
import
socket
import
six
#----- PROTECTED REGION END -----# // GEpressCtrlPACE5000.additionnal_import
...
...
@@ -304,7 +303,7 @@ class GEpressCtrlPACE5000 (PyTango.LatestDeviceImpl):
"""
self
.
debug_stream
(
"
In WriteSocket()
"
)
#----- PROTECTED REGION ID(GEpressCtrlPACE5000.WriteSocket) ENABLED START -----#
cmd
=
six
.
b
(
argin
+
'
\n
'
)
cmd
=
argin
+
'
\n
'
self
.
socket
.
send
(
cmd
)
self
.
debug_stream
(
"
Sent command:
"
+
argin
)
...
...
@@ -329,7 +328,7 @@ class GEpressCtrlPACE5000 (PyTango.LatestDeviceImpl):
argout
=
""
#----- PROTECTED REGION ID(GEpressCtrlPACE5000.WriteReadSocket) ENABLED START -----#
cmd
=
six
.
b
(
argin
+
'
\n
'
)
cmd
=
argin
+
'
\n
'
self
.
socket
.
send
(
cmd
)
self
.
debug_stream
(
"
Sent command:
"
+
argin
)
argout
=
self
.
socket
.
recv
(
100
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment