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
caa592ea
Commit
caa592ea
authored
Dec 20, 2014
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved frame stringification
parent
0db7d5e6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
frame.py
frame.py
+15
-2
No files found.
frame.py
View file @
caa592ea
...
@@ -21,9 +21,11 @@ CLOSE_MESSAGE_TOOBIG = 1009
...
@@ -21,9 +21,11 @@ CLOSE_MESSAGE_TOOBIG = 1009
CLOSE_MISSING_EXTENSIONS
=
1010
CLOSE_MISSING_EXTENSIONS
=
1010
CLOSE_UNABLE
=
1011
CLOSE_UNABLE
=
1011
line_printable
=
[
c
for
c
in
printable
if
c
not
in
'
\
r
\
n
\
x0b
\
x0c
'
]
def
printstr
(
s
):
def
printstr
(
s
):
return
''
.
join
(
c
if
c
in
printable
else
'.'
for
c
in
str
(
s
))
return
''
.
join
(
c
if
c
in
line_
printable
else
'.'
for
c
in
str
(
s
))
class
Frame
(
object
):
class
Frame
(
object
):
...
@@ -154,7 +156,18 @@ class Frame(object):
...
@@ -154,7 +156,18 @@ class Frame(object):
if
len
(
self
.
payload
)
>
max_pl_disp
:
if
len
(
self
.
payload
)
>
max_pl_disp
:
pl
+=
'...'
pl
+=
'...'
return
s
+
' payload=%s>'
%
pl
s
+=
' payload=%s'
%
pl
if
self
.
rsv1
:
s
+=
' rsv1'
if
self
.
rsv2
:
s
+=
' rsv2'
if
self
.
rsv3
:
s
+=
' rsv3'
return
s
+
'>'
class
ControlFrame
(
Frame
):
class
ControlFrame
(
Frame
):
...
...
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