Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wspy
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
wspy
Commits
1b8f607d
Commit
1b8f607d
authored
Nov 07, 2012
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved Frame stringification
parent
3f383b61
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
frame.py
frame.py
+2
-2
No files found.
frame.py
View file @
1b8f607d
...
@@ -62,7 +62,7 @@ class Frame(object):
...
@@ -62,7 +62,7 @@ class Frame(object):
else
:
else
:
raise
Exception
(
'the payload length is too damn high!'
)
raise
Exception
(
'the payload length is too damn high!'
)
if
self
.
masking_key
:
if
mask
:
return
header
+
self
.
masking_key
+
self
.
mask_payload
()
return
header
+
self
.
masking_key
+
self
.
mask_payload
()
return
header
+
self
.
payload
return
header
+
self
.
payload
...
@@ -84,7 +84,7 @@ class Frame(object):
...
@@ -84,7 +84,7 @@ class Frame(object):
return
frames
return
frames
def
__str__
(
self
):
def
__str__
(
self
):
return
'<Frame opcode=
%c
len=%d>'
%
(
self
.
opcode
,
len
(
self
.
payload
))
return
'<Frame opcode=
0x%X
len=%d>'
%
(
self
.
opcode
,
len
(
self
.
payload
))
def
receive_fragments
(
sock
):
def
receive_fragments
(
sock
):
...
...
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