Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
si
python-nbxmpp
Commits
9b5e73d3
Commit
9b5e73d3
authored
Jul 31, 2013
by
Yann Leboulanger
Browse files
fix encoding Protocol object before sending them
parent
9a858e58
Changes
1
Hide whitespace changes
Inline
Side-by-side
nbxmpp/transports_nb.py
View file @
9b5e73d3
...
...
@@ -497,10 +497,10 @@ class NonBlockingTCP(NonBlockingTransport, IdleObject):
"""
NonBlockingTransport
.
send
(
self
,
raw_data
,
now
)
if
isinstance
(
raw_data
,
str
):
r
=
self
.
encode_stanza
(
raw_data
)
else
:
if
isinstance
(
raw_data
,
bytes
):
r
=
raw_data
else
:
r
=
self
.
encode_stanza
(
raw_data
)
if
now
:
self
.
sendqueue
.
insert
(
0
,
r
)
...
...
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