Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
opensipkd-iso8583
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit aff50116
authored
May 10, 2020
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Bug fixed streamer
1 parent
2c460f4b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
4 deletions
opensipkd/streamer/bjb_with_suffix.py
opensipkd/streamer/mitracomm.py
opensipkd/streamer/bjb_with_suffix.py
View file @
aff5011
...
...
@@ -13,6 +13,5 @@ class Streamer(BaseStreamer):
# Override Stremer.set
def
set
(
self
,
raw
):
raw
=
raw
.
encode
()
raw
+=
bytes
([
3
])
return
BaseStreamer
.
set
(
self
,
raw
)
opensipkd/streamer/mitracomm.py
View file @
aff5011
...
...
@@ -14,8 +14,6 @@ class Streamer(BaseStreamer):
if
self
.
size
:
size
=
self
.
size
-
len
(
self
.
raw
)
else
:
if
isinstance
(
raw
,
str
):
raw
=
raw
.
encode
()
raw
=
self
.
raw
+
raw
if
len
(
raw
)
<
2
:
self
.
raw
=
raw
...
...
@@ -37,4 +35,4 @@ class Streamer(BaseStreamer):
a
=
int
(
size
/
256
)
b
=
size
%
256
header
=
bytes
([
a
])
+
bytes
([
b
])
return
header
+
raw
.
encode
()
return
header
+
raw
Write
Preview
Markdown
is supported
Attach a file
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 post a comment